write a c program to calculate and print multiplication table from 1*1 to 16*16
Answers
Answered by
2
#include <stdio.h>
int main() {
int n, i;
printf("Enter an integer: ");
scanf("%d", &n);
for (i = 1; i <= 10; ++i) {
printf("%d * %d = %d \n", n, i, n * i);
}
return 0;
}
output:
Enter an integer: 9
9 * 1 = 9
9 * 2 = 18
9 * 3 = 27
9 * 4 = 36
9 * 5 = 45
9 * 6 = 54
9 * 7 = 63
9 * 8 = 72
9 * 9 = 81
9 * 10 = 90
Similar questions
Science,
2 months ago
Hindi,
2 months ago
Math,
4 months ago
Math,
4 months ago
Social Sciences,
10 months ago
Geography,
10 months ago
Social Sciences,
10 months ago