Why my code isn't geting executed? Help me!!!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why my code isn't geting executed? Help me!!!!

#include <stdio.h> int main() { int i = 1; while (i <= 10) if (i % 2 == 0) { printf("i = %d \n", i); } i++; return 0; }

13th Nov 2020, 2:38 PM
Rohit Anand
2 Answers
+ 5
u forgot to add curly braces after while https://code.sololearn.com/cwW5x66IB53i/?ref=app
13th Nov 2020, 2:41 PM
Shino
Shino - avatar
+ 2
Atul Thanks bro
13th Nov 2020, 2:53 PM
Rohit Anand