Program:
#include<stdio.h>
#include<conio.h>
void main()
{
int n, i;
clrscr();
printf("Enter any Number : ");
scanf("%d", &n);
for(i=1; i<=20; i++)\
{
printf("\n %d * %d = %d", n, i, n*i);
}
getch();
}
Output:
Enter any Number : 2
2*1=2
2*2=4
2*3=6
2*4=8
2*5=10
2*6=12
2*7=14
2*8=16
2*9=18
2*10=20
2*11=22
2*12=24
2*13=26
2*14=28
2*15=30
2*16=32
2*17=34
2*18=36
2*19=38
2*20=40
Next Topic :
Previous Topic :
No comments:
Post a Comment