C++ Program to Print Number Table

| Last Updated: | In: C++ Tutorial


If you want to write a C++ program to print number table, then this tutorial is specially designed for you. Please keep your close attention in this post as I am going to share a C++ program to print number table while executing below C++ program.

How to Print Number Table?

In this program, we have to get input from the user and the multiply that number with “i” variable to print the number table with the help of the for a loop. Copy and paste below code to print the number table of an entered number by the user.

Output is:

Enter a number: 4
4 * 1 = 4
4 * 2 = 8
4 * 3 = 12
4 * 4 = 16
4 * 5 = 20
4 * 6 = 24
4 * 7 = 28
4 * 8 = 32
4 * 9 = 36
4 * 10 = 40


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: , , , ,