Saturday, 10 December 2011

Write a program to print Even numbers in c

#include
#include
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