TOPIC
Runtime error Python
victor.gppcom@ufrn.edu.br asked 2 months ago
Segue meu código:
C=int(input())
P=int(input())
if C==1:
tot=float(4*P)
print("Total: R$ %.2f" %tot)
elif C==2:
tot=float(4.5*P)
print("Total: R$ %.2f" %tot)
elif C==3:
tot=float(5*P)
print("Total: R$ %.2f" %tot)
elif C==4:
tot=float(2*P)
print("Total: R$ %.2f" %tot)
elif C==5:
tot=float(1.5*P)
print("Total: R$ %.2f" %tot)
Já testei no Python Shell do windows e no visual studio code e funciona de boas, saí os resultados certinhos, mas quando submito aqui, dá erro. Esse não é o primeiro que tenho problema, estou com problemas em vários outros e não sei mais o que fazer.