write a program to print a table of given number?
Answers
Answered by
4
Write a program in C to display the multiplication table of a given integer.
Pictorial Presentation:
Sample Solution:
C Code: #include <stdio.h> void main() { int j,n; printf("Input the number (Table to be calculated) : "); scanf("%d",&n); printf("\n"); for(j=1;j<=10;j++) { printf("%d X %d = %d \n",n,j,n*j); } }
Answered by
1
Explanation:
Pictorial Presentation:
Sample Solution:
C Code: #include <stdio.h> void main() { int j,n; printf("Input the number (Table to be calculated) : "); scanf("%d",&n); printf("\n"); for(j=1;j<=10;j++) { printf("%d X %d = %d \n",n,j,n*j); } }
Attachments:
Similar questions