Table of a number in C++

We all know what is table of a number.
Here is the code to print table of a number in c, entered by the user.




using namespace std;

int main()
    int num;
cout<<"Enter Number To Find Multiplication table ";


    for(int a=1;a<=10;a++)
        cout<<num<<" * "<<a<<" = "<<num*a<<endl;

  return 0;


Leave a Comment