0

plz help me im stuck at "ticket office" project

i tried many time but it showing the error plz help me https://code.sololearn.com/c7KDhdBbJO3s/?ref=app

1st Jan 2021, 3:08 PM
Cā„½bĶ„erĶ£lĶ«ordĀ 
Cā„½bĶ„erĶ£lĶ«ordĀ  - avatar
3 Answers
+ 4
Cā„½bĶ„erĶ£lĶ«ordĀ  Take minAge as int not float. for (i = 0; i < 5; i++) { cin >> age[i]; } minAge = age[0]; for (int j = 0; j < 5; j++) { if (minAge > age[j]) { minAge = age[j]; } } fair = 50.0 - 50.0 * minAge / 100 ;
1st Jan 2021, 3:21 PM
AĶ¢J
AĶ¢J - avatar
+ 3
Cā„½bĶ„erĶ£lĶ«ordĀ  Why are you writing hard code condition for comparison?
1st Jan 2021, 3:14 PM
AĶ¢J
AĶ¢J - avatar
+ 2
i learning to solve the problem in hard way because i want to became a master on it šŸ˜…
1st Jan 2021, 3:18 PM
Cā„½bĶ„erĶ£lĶ«ordĀ 
Cā„½bĶ„erĶ£lĶ«ordĀ  - avatar