-->





Translate

C++ Program to Find the Multiplication Table Of a Given number

11 comments
    C++ code to find Multiplication Table of  a number using for loop
  1. #include<iostream>

  2. using namespace std;

  3. int main()

  4. {

  5.     int num;

  6. cout<<"Enter Number To Find Multiplication table ";

  7. cin>>num;

  8.     for(int a=1;a<=10;a++)

  9.     {

  10.         cout<<num<<" * "<<a<<" = "<<num*a<<endl;

  11.     }

  12.   return 0;

  13. }

 Sample Output :


Image View of Code:


11 comments: