+ 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
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.
+ 2
Thank you very much!!!