Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alcool = 0
- gasolina = 0
- diesel = 0
- while True:
- user_input = int(input())
- if user_input >= 1 and user_input <= 4:
- if user_input == 1:
- alcool += 1
- if user_input == 2:
- gasolina += 1
- if user_input == 3:
- diesel += 1
- if user_input == 4:
- break
- print("MUITO OBRIGADO")
- print("Alcool:", alcool)
- print("Gasolina:", gasolina)
- print("Diesel:", diesel)
Advertisement
Add Comment
Please, Sign In to add comment