Description
CYB/130 Week 1 Python LAB 2.32: Using math functions
Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of (x minus y), and the square root of (x to the power of z).
Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print(‘{:.2f} {:.2f} {:.2f} {:.2f}’.format(your_value1, your_value2, your_value3, your_value4))
Ex: If the input is:
5.0
1.5
3.2
Then the output is:
172.47 361.66 3.50 13.13
Reviews
There are no reviews yet.