Problem description | | Progress |
Темы:
Programming language
Write a program that calculates the value of the variable y according to the formula:
y = (1 - x2 + 2,5x3 + x4)2
The value of the variable x is set from the keyboard. Define the types of variables x and y yourself.
Output the value of the variable y on the screen.
| |
|
Темы:
Programming language
Write a program that calculates the value of the variable y given the formula:
y = (1 - x2+ 2.5x3 + x4)2< /code>
The value of the x variable is set from the keyboard. Define the types of the x and y variables yourself.
Display the value of the y variable on the screen.
Sample input and output.
| |
|
Темы:
Programming language
Write a program that calculates the value of the variable y using the formula:
y=(1-x2+2.5x3+x4)2 code>
The value of the variable x is set from the keyboard. Determine the types of variables x and y yourself.
Display the value of the y variable on the screen
| |
|
Темы:
Programming language
1. Write the source code of the program.
2. Set the initial data.
3. Look at the result of the program's work on the given initial data.
| |
|
Темы:
Programming language
As you know, the cat Matroskin is very proud of his cow Murka. He is especially proud of Murka's calves. Over the past n years, cow Murka has had one calf. At birth, a calf weighs one kilogram. Each year, each calf gains two kilograms. The pride of the Matroskin cat will be the greater, the greater the average weight of the calf. After the birth of another calf this year, Matroskin decided to find out the extent of his pride.
Help Matroskin find out the level of his pride, that is, find the average weight of all calves born over n years.
Input
A single integer is entered 1<=n<=1000 — the number of years that Murka had calves.
Imprint
Output the average weight of all born calves.
Examples
| |
|
Темы:
Programming language
Write a program that calculates the value of \(y=3\cdot x^6-6\cdot x^ 2-7\) em>, with a given value x .
Input
The input to the program is an integer x (\(x < 10\)).
Imprint
Print the value of y .
Examples
| |
|