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

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz