0

Please explain me the output of this code

int num = 5; while (num > 0) { num--; if (num == 3) continue; printf("%d\n", num); }

22nd Mar 2019, 2:58 PM
Shailendra Singh
Shailendra Singh - avatar
1 Answer
+ 4
Skipped 3 because of the continue Search bar is here: https://www.sololearn.com/post/10362/?ref=app (Tips: Remember to switch filter option to "Most Popular" first) I see you are in this lesson https://www.sololearn.com/learn/C/2926/?ref=app Click the Try It Yourself to play with the codes a little bit.
22nd Mar 2019, 3:02 PM
Gordon
Gordon - avatar