0

Hi, everyone! Where's my mistake?

Maximum value of arrays https://code.sololearn.com/cHEpfz0Dy8Go/?ref=app

7th Aug 2019, 10:02 AM
Monika Petrunova
4 Respuestas
+ 3
modify your loop: for (int x = 1; x < 5; x++) { if (arr [x] > max) max = arr[x]; }
7th Aug 2019, 10:10 AM
Michael
Michael - avatar
+ 2
Daljeet Singh, thanks! There were another mistake with IF syntax! 😘 Finally it works!🥳 https://code.sololearn.com/cHEpfz0Dy8Go/?ref=app
7th Aug 2019, 11:13 AM
Monika Petrunova
+ 1
Michael, yes, ofcourse! Thank you!😘 It was a stupid mistake. The code don't running again, but I think it's because of simulation environment.👍I saved it with the changes, if you want to check it.
7th Aug 2019, 10:36 AM
Monika Petrunova
+ 1
Monika recheck closing ) @ line 10 and ; edit: https://code.sololearn.com/cBw53CFHo21B/?ref=app
7th Aug 2019, 10:53 AM
Daljeet Singh
Daljeet Singh - avatar