Thursday, July 28, 2011

Whole numbers from 100 to 2

#include<stdio.h>
void main()

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

0 comments:

Post a Comment