vasco-da-gama
C IS AS DEEP AS SEA
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment