breaks nd continue | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

breaks nd continue

You are making a ticketing system. The price of a single ticket is $100. For children under 3 years of age, the ticket is free. Your program needs to take the ages of 5 passengers as input and output the total price for their tickets. Sample Input 18 24 2 5 42 Sample Output 400

17th Apr 2022, 7:11 PM
priyanka mahule
1 Answer
+ 5
Where is your try? Tag the language in which you are trying..! If you not tried anything, pls try yourself first and post your try if not solved..
17th Apr 2022, 7:14 PM
Jayakrishna 🇮🇳