+ 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 Respuestas
+ 5
u forgot to add curly braces after while https://code.sololearn.com/cwW5x66IB53i/?ref=app
13th Nov 2020, 2:41 PM
Atul
Atul - avatar
+ 2
Atul Thanks bro
13th Nov 2020, 2:53 PM
Rohit Anand