TOPIC

Runtime Erro em Python 3

Janio Aurelio Santos Albuquerque asked 5 months ago

n = int(input())
q = int(input())
if n == 1:
  x = q * 4.00
  print('Total: R$ {0:.2f}'.format(x))
elif n == 2:
  x = q * 4.50
  print('Total: R$ {0:.2f}'.format(x))
elif n ==3:
  x = q * 5.00
  print('Total: R$ {0:.2f}'.format(x))
elif n == 4:
  x = q * 2.00
  print('Total: R$ {0:.2f}'.format(x))
elif n == 5:
  x = q * 1.50
  print('Total: R$ {0:.2f}'.format(x))

Alguém pode ajudar ?

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

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