Wednesday, 5 October 2011

Table using while loop


#include<stdio.h>
#include<conio.h>
main()
{
int a,b,table;
clrscr();
printf("enter the number");
scanf("%d",&a);
b=1;
while(b<=10)
{
table=a*b;
printf("table is %d\n",table);
b++;
}
getch();
return 0;
}

No comments:

Post a Comment