0

whats wrong

trying solve this:You are making a ticketing system. The price of a single ticket is $100. For children under 3 years old, the ticket is free. Your program needs to take the ages of 5 passengers as input and output the total price for their tickets. my code is: total =0 y = 100 x=int(input()) while int(x)>3: x=int(input()) total=y+total if x<3: break continue print(total)

4th Mar 2022, 4:00 PM
Askar Kondybaev
Askar Kondybaev - avatar
4 Antworten
4th Mar 2022, 4:13 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
https://code.sololearn.com/c7T36CdgS6ap/?ref=app - what is that 00
4th Mar 2022, 4:38 PM
Askar Kondybaev
Askar Kondybaev - avatar
0
olli , I don't understand what do you mean.
4th Mar 2022, 7:45 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
before i follow the link i didnt have option to see the answer(decision)
5th Mar 2022, 5:08 AM
Askar Kondybaev
Askar Kondybaev - avatar