Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. print("ingrese el nombre")
  2. nombre=input()
  3. print("cuanto dinero posee")
  4. dinero=int(input())
  5. print("cuantos helados desea")
  6. cant=int(input())
  7. helado = 1000
  8. monto=helado*cant
  9. vuelto=int()
  10. vuelto = dinero-monto
  11. if monto>dinero:
  12.     print(f"{nombre} no puede comprar")
  13. if monto<=dinero:
  14.     print(f"{nombre} su boleta es: "+str(monto))
  15.  
  16.     print(f"su vuelto es{vuelto}")
  17. input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement