C Program To Print Multiplication Table From 1 To 10 Using Do
![](https://i0.wp.com/sicepat.com/images/image-not-found.png)
So, it will print the multiplication table from 1 to 12 for 11. method 3: c program to print the multiplication table by using a separate function: let’s use a separate function to print the multiplication table. this function will take the number as the parameter and print the multiplication table for that number. Output. here, the user input is stored in the int variable n. then, we use a for loop to print the multiplication table up to 10. printf("%d * %d = %d \n", n, i, n * i); the loop runs from i = 1 to i = 10. in each iteration of the loop, n * i is printed. here's a little modification of the above program to generate the multiplication table up.
![](https://i0.wp.com/sicepat.com/images/image-not-found.png)
9 x 6 = 549 x 7 = 639 x 8 = 729 x 9 = 819 x 10 = 90. 10 x 1 = 1010 x 2 = 2010 x 3 = 3010 x 4 = 4010 x 5 = 50. 10 x 6 = 6010 x 7 = 7010 x 8 = 8010 x 9 = 9010 x 10 = 100. c program to generate multiplication table of 1 to 10. We will make this program in the following way : c program to print multiplication table using for loop. c program to print multiplication table using while loop. c program to print multiplication table using function. c program to print multiplication table using recursion. c program to print multiplication table from 1 to 10. Program explanation. 1. take a number as input and store it in the variable num. 2. the variable num is passed to the multiplicationtable function multiplicationtable (num). 3. the multiplicationtable function prints the multiplication table of the number using a for loop and then print in a suitable format. C program to print multiplication table from 1 to 10. sometimes, we need to write a program to print the multiplication table from 1 to 10. in this case, nested loops can help us to solve the problem. outer loop used to display column and inner loop used to display the row of the multiplication table.
Comments are closed.