Generate table of a given input number
Write a C Program to generate table of a given input number. Here’s simple C Program to generate table of a given input number in C Programming Language.
Enter any integer number as input of which you want multiplication table. After that we use for loop from one to ten to generate multiplication of that number.
Below is the source code for C Program to generate table of a given input number which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
/* C Program to generate table of a given input number */ #include<stdio.h> #include<conio.h> int main() { int num,result,i=1; printf("Enter any number to generate the table : "); scanf("%d",&num); printf("\nThe table of %d is given below :: \n",num); while(i<=10) { result=num*i; printf(" %d * %d = %d\n",num,i,result); i++; } return 0; }
OUTPUT : :
/* C Program to generate table of a given input number */ Enter any number to generate the table : 7 The table of 7 is given below :: 7 * 1 = 7 7 * 2 = 14 7 * 3 = 21 7 * 4 = 28 7 * 5 = 35 7 * 6 = 42 7 * 7 = 49 7 * 8 = 56 7 * 9 = 63 7 * 10 = 70
Above is the source code for C Program to generate table of a given input number which is successfully compiled and run on Windows System.The Output of the program is shown above .
If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach up to you in short interval.
Thanks for reading the post….
JHJ
return the kth node and class solution