a guest Mar 20th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
  16.     print(f"su vuelto es{vuelto}")
  17. input()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand