+ 1

What is not so?

I tried to solve task "Ticket Office" in C++ course. Everything is right except test 5. I don't understand, what is not so. My code is here, help me please! https://code.sololearn.com/cwIidgBrkv2I/?ref=app

10th Dec 2020, 4:16 PM
Дитникова Варвара
Дитникова Варвара - avatar
2 Answers
+ 2
Дитникова Варвара Just do this and you will get your problem solved. for (int i=0; i<5; i++) { if (massive[i]<min) { min = massive[i]; } } You just need minimum value from the array.
10th Dec 2020, 4:21 PM
AĶ¢J
AĶ¢J - avatar
+ 2
Thank you very much!!!
10th Dec 2020, 4:24 PM
Дитникова Варвара
Дитникова Варвара - avatar