Feb 24, 2007

C program to generate natrual numbers from 1 to 100

C program to generate natural numbers from 1 to 100 using while loop.
#include<stdio.h>
main()
{
int a=1;
clrscr();
while (a<=100)
{
printf("\n%d",a);
a=a+1;
}
getch();
}

No comments:

Post a Comment

Infolinks In Text Ads

Total Pageviews

Powered by Blogger.

Dont Forget To Follow Us

Blog Archive