HTML Tutorial || Networking Assignment || Computer Full Forms || Ms-Office Shortcut Keys || Ms-Office Notes || Number System Notes || Internet Assignment
JavaScript Tutorial || CSS Tutorial || Operating System Notes || History of Computer Assignment || Netwoking Notes || Computer Fundamentals Notes

C program to Print all Even Numbers b/w 0 to 10 Using For Loop


Q:- Write a C program to Print all Even Numbers b/w 0 to 10 Using For Loop ?
       Input
         #include<stdio.h>
         #include<conio.h>
         main()
   {
int i;
clrscr();
printf(“Even Numbers b/w 0 to 10 are =”);
for(i=0;i<=10;i=i+2)
{
printf(“%d\n”,i);
}
getch();
   }


Output

Even Numbers b/w 0 to 10 are = 0
2
4
6
8
10

Comments