What is not so? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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