C Program To Print Multiplication Table Using While Loop

C Program To Print Multiplication Table Using While Loop. If you are looking for a C program to generate multiplication table example, this C programming example will help you to learn how to write a program for multiplication table in C. Just go through this C programming tutorial to learn about multiplication table in C. It helps you to write a C program to display multiplication table.

C Program To Print Multiplication Table

C Multiplication Program – Table of Contents

  • C Program to Generate Multiplication Table
  • C Program to Print Multiplication Table – Source Code
  • C Program to Print Multiplication Table – Output
  • C Programming Tutorials

C Program to Generate Multiplication Table

Learn how to write a  c program to print multiplication table. Writing a multiplication table program in C can be done using various techniques but here in this program, we show how to write a c multiplication table program in a proper way. Happy coding.

C Program to Print Multiplication Table – Source Code

You can copy paste the below c program to display  multiplication table using while loop, in c compiler to check how the source code work. Or write your own multiplication C Program with the help of this below c program for multiplication table.

Source Code:

/* C PROGRAM TO PRINT MULTIPLICATION TABLE - MULTITABLE.C */

#include<stdio.h>
#include<conio.h>
void main()
{
    int r, c, y ; //variable declaration
    clrscr() ; 
    r = 1 ;
    
    printf("The multiplication table is :\n\n") ;
    do
    {
        c = 1 ;
        do
        {
            y = r * c ;
            printf("%5d", y) ;
            c = c + 1 ;
        } while(c <= 10) ;
        printf("\n\n") ;
        r = r + 1 ;
    } while(r <= 10) ;
    getch() ;
}

C program to print multiplication table – OUTPUT

After you compile and run the above c multiplication table program, your C compiler asks you to enter elements to print multiplication table. After you enter elements, the program will be executed and give output.

Output:

The multiplication table is :

1 2 3 4 5 6 7 8 9 10

2 4 6 8 10 12 14 16 18 20

3 6 9 12 15 18 21 24 27 30

4 8 12 16 20 24 28 32 36 40

5 10 15 20 25 30 35 40 45 50

6 12 18 24 30 36 42 48 54 60

7 14 21 28 35 42 49 56 63 70

8 16 24 32 40 48 56 64 72 80

9 18 27 36 45 54 63 72 81 90

10 20 30 40 50 60 70 80 90 100

C PROGRAMMING TUTORIALS

  1. C Program Array with Example
  2. Binary Search in C Program Using Recursion
  3. Bubble Sort in C Using Pointers
  4. Bubble Sort Program in C Using Recursion
  5. Bubble Sort Program in C Using Array
  6. Bubble Sort Program in C Using Function
  7. Bubble Sort Program in C Using Linked List
  8. Stack Push Pop Program in C Using Arrays
  9. Factorial Program in C Using Pointers
  10. Factorial Program in C Using While Loop
  11. C Program For Factorial Using For Loop
  12. Factorial Program in C Using Recursion Function
  13. C Program To Reverse a String Using Pointers
  14. C Program To Swap Two Numbers Using Two Variables
  15. C Program To Swap Two Numbers Using Three Variables
  16. C Program For Prime Numbers – Check  a Number is Prime or Not
  17. C Program To Reverse a String with Using Function
  18. C Program to Reverse a String without Using Function
  19. C Program to Reverse a Sting Using Recursion
  20. C Program For Palindrome String
  21. C Program For Palindrome Numbers
  22. C Program To Reverse a String with Using Function
  23. C Program To Reverse a String without Using Function
  24. C Program To Reverse a String Using Recursion

Leave a Reply

Your email address will not be published. Required fields are marked *