Write a program in the C programming language to print the table of the inputted number. Below is the solution of the C program –
/* C Program to print the table of inputted number */ #include<stdio.h> void main() { int n,i,t; printf("Enter any number to print it's table \n"); scanf("%d",&n); printf("\nTable of %d is - \n",n); for(i=1;i<=10;i++) { t=n*i; printf("%d x %d = %d \n",n,i,t); } getch(); }
Description – For loop is used to print the table.
Below is the output of the above program –
thankxxxx .it helped me alot
this side is most importaint in knowledge