+ 1

(solved) a = float(input()) b = float(input()) c = float((a*b)/1000) if 10>c>0 c*20=c elif 20>c>=10 c*10=c elif 35>c>=20

could someone help me figure out how to get this code to work https://code.sololearn.com/cLiW1yi0RmPQ

8th Jan 2019, 1:09 AM
Austin
Austin - avatar
2 Answers
+ 1
Try this: a = float(input()) b = float(input()) c = float((a*b)/1000) if 10>c>0: c=c*20 elif 20>c>=10: c=c*10 elif 35>c>=20: c=c*5 elif c>=35: c=c*2 print(c)
8th Jan 2019, 2:50 AM
Diego
Diego - avatar
+ 1
Please post your code in the Code Playground and share the link.
8th Jan 2019, 1:22 AM
Diego
Diego - avatar