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 Respuestas
+ 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