C++ Programming Code Examples C++ > Beginners Lab Assignments Code Examples Print Table of Number Print Table of Number To print table of a number in C++ programming, you have to ask to the user to enter a number and start multiplying that number from 1 to 10 and display the multiplication result at the time of multiplying on the output screen which is the table of the number as shown here in the following program. Following C++ program ask to the user to enter any number to find the table of that number, then display it on the screen: #include<iostream.h> #include<conio.h> void main() { clrscr(); int num, i, tab; cout<<"Enter a number : "; cin>>num; cout<<"Table of "<<num<<" is \n\n"; for(i=1; i<=10; i++) { tab=num*i; cout<<num<<" * "<<i<<" = "<<tab<<"\n"; } getch(); }