by CodeChum Admin
Now that we're done with integers, we're moving on to decimals!
Instructions:
Input
A line containing three decimal numbers with two decimal places separated by a space.
1.53·2.25·1.23
Output
A line containing the result with two decimal places.
2.80
string_series =input()
floats_list = [float(item) for item in string_series.split()]
number1=floats_list[0]
number2=floats_list[1]
number3=floats_list[2]
product=number1*number2
quotient=product/number3
print("{:0.2f}".format(quotient))
Comments
Leave a comment