Computer Science, asked by muralimani212, 4 months ago

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 aavakhadka3
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