TOPIC

perl Wrong answer (100%)

Vinicius Coelho asked 2 years ago

Whats wrong?

lista = input().split() x = int(lista[0]) y = int(lista[1]) custo = 0 if x == 1: custo = 4y elif x == 2: custo = 4.50y elif x == 3: custo = 5y elif x == 4: custo = 2y elif x == 5: custo = 1.5*y

print('Total: R$', format(custo,'.2f'))

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.