Answer to Question #253152 in Python for Eli

Question #253152

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.


NOTE: There are several test cases with different input which results in different output


1
Expert's answer
2021-10-18T11:39:53-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
APPROVED BY CLIENTS