Thursday, July 28, 2011

Program to print even numbers from 2 to 100

#include<stdio.h>
void main()

{
int i,num=0;
clrscr();
printf("The even Numbers from 2 to 100 is : \n");
for(i=0;i<50;i++)
 {
 num+=2;
 printf("%d\t",num);
 }
getch();
}

No comments:

Post a Comment