I want to print all the Even numbers lying between 1 to 10. My program does that.Code:#include<stdio.h> #include<conio.h> void main() { clrscr(); int i; for (i=1;i<=10;i++) { if (i%2==0) printf("\n%d",i "is even number"); } getch(); }
But I want to display in the format:-
2 is even number
4 is even number
and so on......
Below LINE Do not Display the correct output:-
Please help me!!!!!Code:printf("\n%d",i "is even number");




Reply With Quote