Pages

Saturday, 19 May 2012

program to print Even numbers


54./*Write a program to print Even numbers*/

#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
for(i=0;i<100;i=i+2)
{
printf("%d",i+2);
printf("\t");
}
getch();
}

OUTPUT
            2 4 6 8 10 ………………… 100

No comments:

Post a Comment