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
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 ;
+ 3
Cℽbͥerͣlͫord Why are you writing hard code condition for comparison?
+ 2
i learning to solve the problem in hard way because i want to became a master on it 😅