0
Wft id happening here?
I dont know, It was for the chalenge https://code.sololearn.com/c7DecejvJemM/?ref=app
1 Réponse
0
https://code.sololearn.com/cFwyLiYq2OzS/?ref=app
I didn't understand what the array was for, but in any case you were checking it before there was anything in it (while it was uninitialized). I removed that, and replaced it with a simple while (num != 0); (and changed the second if to an else if), and it now works like a charm.