Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nombre = input('Cual es su nombre? ')
- print()
- dinero = input('Cuanto dinero posee? ')
- print()
- helado = 1000
- print('Cuantos helados quiere? Cada Helado tiene un valor de $1000 ' )
- cantidad = input()
- print()
- total = int(cantidad)*int(helado)
- vuelto = int(dinero)-total
- if total > int(dinero):
- print('NO PUEDES COMPRAR, ERES MUY POBRE ')
- elif total <= int(dinero):
- print('EL TOTAL ES DE ' + str(total))
- print('SU VUELTO ES DE:' + str(vuelto))
- input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement