How to write a multiplication table using c programming?
Answers
Answered by
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
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
Physics,
5 months ago
Biology,
5 months ago
Science,
11 months ago
English,
11 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago