Computer Science, asked by hari1201, 11 months ago

How to write a multiplication table using c programming?​

Answers

Answered by savitrikumarii121
0

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; }

in this program we have taken two variables n,i.

now come to the loop,we have applied a loop starts from 1 and end to 10.

Answered by ashneybundela
2

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; }

in this program we have taken two variables n,i.

now come to the loop,we have applied a loop starts from 1 and end to 10.

Similar questions