Explanation:The required library is included.
We define that i will represent the iteration and n will retain the number for which the table will be printed.
The user is asked to provide a number, which we then read.
n times i is looped from 1 to 10, and the result is formatted and printed.
#include <stdio.h>
int main() {
int n, i;
printf("Enter a number: ");
scanf("%d", &n);
for (i = 1; i <= 10; i++) {
printf("%d x %d = %d\n", n, i, n * i); // Print the multiplication result.
}
return 0;
}