+ 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
2 Answers
+ 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];