+ 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
2 Respostas
+ 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)
+ 1
Please post your code in the Code Playground and share the link.