Aleksandrovno

Untitled

May 7th, 2020
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1.  
  2.  
  3. int totalBoleta
  4. int agua = 600
  5. int azucar = 1200
  6. int aceite = 1500
  7. int arroz = 1250
  8. int fideos = 790
  9. int bebida = 1780
  10. int chocolate = 2500
  11. int panMolde = 1340
  12.  
  13. respuesta = int(input ("¿Desea agua? Responda 1, para sí. Responda 2, para no "))
  14. if (respuesta == 1):
  15. pass totalBoleta = totalBoleta + agua
  16. else:
  17. pass totalBoleta = totalBoleta + 0
  18.  
  19. respuesta = int(input ("¿Desea azucar? Responda 1, para sí. Responda 2, para no "))
  20. if (respuesta == 1):
  21. pass totalBoleta = totalBoleta + azucar
  22.  
  23. else:
  24. pass totalBoleta = totalBoleta + 0
Add Comment
Please, Sign In to add comment