TOPIC
Python - Consegui! As vezes é coisa besta mesmo
tplins0 asked 2 years ago
x,y = map(int,input().split())
if(x == 1): z = 4.0 print("Total: R$ {:.2f}".format(y*z))
elif(x == 2): z = 4.5 print("Total: R$ {:.2f}".format(y*z))
elif(x == 3): z = 5.0 print("Total: R$ {:.2f}".format(y*z))
elif(x == 4): z = 2.0 print("Total: R$ {:.2f}".format(y*z))
elif(x == 5): z = 1.5 print("Total: R$ {:.2f}".format(y*z))
This topic has not been answered yet. Be the first!