Answer to Question #259138 in Python for stephenabelong

Question #259138

Multiplying two numbers is a piece of cake, but how about multiplying three of them, either being a negative of positive number? With programming and proper code, these tasks are easy to handle.







You're a programmer, right? Then code this one for me!





Input





A line containing three numbers (positive or negative, may have decimal places) separated by a space.





1.6·-2·-1




Output





A line containing a decimal/float with one decimal place.





3.2

1
Expert's answer
2021-10-30T13:32:17-0400
from decimal import *
li = list(map(Decimal,input().split()))
result = li[0]*li[1]*li[2]
print(abs(result))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog