Write a program to print the multiplication table of a given number. The number has to be entered by the user. (Use while loop)
Answers
Answered by
1
Answer:
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;
}
Similar questions
Math,
2 months ago
Computer Science,
2 months ago
Math,
2 months ago
Math,
4 months ago
Social Sciences,
10 months ago
Science,
10 months ago