Home / Programs / C program to print the multiplication table of 9 from 1 to 10 using do while loop.
🚀 Programming Example

C program to print the multiplication table of 9 from 1 to 10 using do while loop.

👁 3,289 Views
💻 Practical Program
📘 Step Learning
This program prints a multiplication table of 9 from 1 to 10. The do-while loop is used in this program. Initially, the value of i is 1. On each iteration, the value of i is increased by 1 and conditi

💻 Program Code

// C program to print the table of 9 from 1 to 10.

#include<stdio.h>
int main()
{
    int i=1;
    do
    {
        printf("9 * %d = %d\n",i,9*i);
        i++;
    }while(i<=10);
    return 0;
}
                        

🖥 Program Output

9 * 1 = 9
9 * 2 = 18
9 * 3 = 27
9 * 4 = 36
9 * 5 = 45
9 * 6 = 54
9 * 7 = 63
9 * 8 = 72
9 * 9 = 81
9 * 10 = 90
Press any key to continue . . .
                            

📘 Explanation

This program prints a multiplication table of 9 from 1 to 10. Do-while loop is used in this program. Initially, the value of i is 1. On each iteration, the value of i is increased by 1 and condition is tested. When the value of i becomes 11,the condition becomes false and loop is terminated.
📚 Learning Subject

Master Programming Through Practical Examples

Improve your coding logic, problem-solving skills and programming confidence by practicing real-world examples with explanations.

🎯 How to learn from this example

First understand the algorithm carefully. Then study the program line-by-line and compare it with the output. Finally, review the explanation section to strengthen your logic and programming understanding.

🔥 Practice suggestion

Rewrite the program without looking at the code. Modify values, conditions or logic and run it again. This helps improve confidence and strengthens coding skills much faster.