Previous | Home | Next |
/** Print table of any number using for loop **/ #include<stdio.h> #include<conio.h> void main() { int n,i,product; i=1; clrscr(); printf("enter the number to make the table ."); scanf("%d",&n); for(i=1;i<=10;i++) { product=n*i; printf("\n%d*%d=%d",n,i,product); getch(); } }
enter the number to make the table .
3
3*1=3
3*2=6
3*3=9
3*4=12
3*5=15
3*6=18
3*7=21
3*8=24
3*9=27
3*10=30
Previous | Home | Next |