Computer Science, asked by kjai23233, 2 months ago

write a program to print a table of given number?​

Answers

Answered by Anonymous
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 pinky22267
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