program
#include <stdio.h>
#include <conio.h>
void main()
{
int a;
printf("enter a value of a: ");
scanf("%d", &a);
printf("the multiplication table of %d are: \n", a);
for (int i = 1; i <= 10; i++)
{
printf("%d X %d = %d\n", a, i, (a * i));
}
}
OUTPUT
Enter a value of a: 4
The multiplication table of 4 are:
4 X 1 = 4
4 X 2 = 8
4 X 3 = 12
4 X 4 = 16
4 X 5 = 20
4 X 6 = 24
4 X 7 = 28
4 X 8 = 32
4 X 9 = 36
4 X 10 = 40
0 Comments