DEV Community


Posted on • Originally published at

How to make a table in C++

How to create a multiplication table in c++
Print Table of any number in C++
Explanation of Program
Article Tags

“How to create a multiplication table in C++”

If you want to learn programming and are learning C ++, you will also know what things you will be able to create after learning it. For a small example you can make a calculator out of it. You can also print a table. Our goal today is to print any table in C ++. First of all, you have to understand the sequence of the table and how it is written. Procedures We have to write in our program. To write this program we need a loop.

Print Table of any Number in C++

Alt Text

Dear student arithmetic factors are the most used component of any high level language. Is used a lot. The arithmetic factors are actually a combination of operators and expressions. When we create a program in which the table has to be printed. Let me show you how to create a program that will help you better understand how to create it and how to use for loop.

num * 1
num * 2
num * 3
num * 4
num * 5
num * 6
num * 7
num * 8
num * 9
num * 10

Explanation of Program

#include <iostream>
using namespace std;
int main()
  int i,a;
    cout<<a<<" x "<<i<<" = "<<(a*i)<<endl;
  return 0;

5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50
Enter fullscreen mode Exit fullscreen mode


Today we are understand to kodlogs website, I try to explain how to make a table in c++. I hope after reading this article you will be able to understand the table in c++.I would like to have feedback from my kodlogs site. Please post your feedback, question, or comments about this article.

Article Tags
C#|Python |Python 3|pycharm | html|java|JavaScript |cpp|code|rubi|Network | Google |html5 |php|bootstrap |string |Microsoft |variable |syntax |Coders |Codinglove|
Xml|game| net| list | loop | integer |float | string | double

Top comments (0)