Wednesday, 5 October 2011

table using for loop


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

No comments:

Post a Comment