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