Programming Examples

CPP Program to print table


Write  a C++ Program which accept a integer number form user and print its table

#include<iostream>
using namespace std;
int main(){
     int num,a ;
     cout<<"Enter any number";
     cin>>num;
     for(a=1;a<=10;a++)
     {
          cout<<num<<"*"<<a<<"="<<num*a<<endl;
     }
     return 0;
}
Output

Enter any Number 5

5*1=5

5*2=10

5*3=15

5*4=20

5*5=25

5*6=30

5*7=35

5*8=40

5*9=45

5*10=50

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad