Arithmetic expressions




The expression on the right side of the assignment epression allows you to calculate values using various formulas.

What expression can contain
• integer and real numbers (in real numbers, the integer and fractional parts are separated by a dot, not a comma, as is customary in mathematics)
• signs of arithmetic operators:
+ addition
- subtraction
* multiplication
/ division
% remainder of the division


• standard mathemtical functions (we can use the math module math.h write at the top of the program #include<math.h>)
 abs(i) absolute value of an integer i 
 fabs(x) absolute value of a real числа x
 sqrt(x) Square root x
 pow(x,y) x**y
• parentheses to reorder

Task
Time limit: 1000 ms,
Memory limit: 32 Mb

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.
Display the value of the variable y on the screen

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: