Print Table of Any Number using C++ Program

Print Table of Any Number using C++ Program : Today we make program for Table in C++.the user is also asked to entered the range up to which multiplication table should be displayed.

C++ Program to Print Table of Any Number

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int counter,number,maxmultipiler;
cout<<"Please Enter the value for which you want a table:"; cin>>number;
cout<<"Please Enter the value up to which you want the table:"; cin>>maxmultipiler;
for(counter=1;counter<=maxmultipiler;counter=counter+1)
{
cout<<number<<"x"<<counter<<"="<<number*counter<<"\n";
}
system("pause");
}

Output of Program

12×4=48
12×5=60
12×6=72
12×7=84
12×8=96
12×9=108
12×10=120
12×11=132
12×12=144
12×13=156
12×14=168
12×15=180
12×16=192
12×17=204
12×18=216
12×19=228
12×20=240
12×21=252
12×22=264
12×23=276
12×24=288
12×25=300
12×26=312
12×27=324
12×28=336
12×29=348
12×30=360
12×31=372
12×32=384