TABLE USING LOOPS :
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i;
printf("enter numbers = ");
scanf("%d",&n);
for(i=1;i<=10;i++)
{
printf("%d*%d=%d\n",n,i,n*i);
}
getch();
}
OUTPUT :
enter numbers = 10
10*1=10
10*2=20
10*3=30
10*4=40
10*5=50
10*6=60
10*7=70
10*8=80
10*9=90
10*10=100
Comments
Post a Comment