Feb 24, 2007

C program to generate a table of any given number

C program to generate table of any given number using while loop.
#include<stdio.h>
main()
{
int a,b,c;
a=1;
clrscr();
printf("Enter Any No.");
scanf("%d",&b);
while (a<=10)
{
c=a*b;
printf("\n%d",c);
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