1st Feb 2020, 7:07 AM
Virendra Maurya
Virendra Maurya - avatar
2 Réponses
+ 1
Viru Maurya for what value of ``i`` do you expect the condition of the if-statement to be true? Try running this program locally on your PC too (after compiling it) and see if you get an output. Adding an else-statement after the if might help with debugging.
1st Feb 2020, 7:16 AM
Hiro
Hiro - avatar
+ 1
In your else-block just write something like: else printf("condition not true\n"); Hope that helps.
1st Feb 2020, 7:17 AM
Hiro
Hiro - avatar