Help me with this c++ code | Sololearn: Learn to code for FREE!
+ 1

Help me with this c++ code

You are working on a ticketing system. A ticket costs $10. The office is running a discount campaign: each group of 5 people is getting a discount, which is determined by the age of the youngest person in the group. You need to create a program that takes the ages of all 5 people as input and outputs the total price of the tickets. https://code.sololearn.com/ch5jQ1qAbdjv/?ref=app

18th Apr 2021, 2:08 PM
deepak ghanchi
deepak ghanchi - avatar
1 Answer
+ 1
your for loop at line 15 doesn't have its opening bracket. it should be: for(int a=0;a<5;a++){ int y=ages[0];
18th Apr 2021, 2:13 PM
Apollo-Roboto
Apollo-Roboto - avatar