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

C++ Program to Find the Multiplication Table Of a Given number
Di Posting Oleh : Simple Learning
Kategori : for loop to find table of number Multiplication table c++ program number multiplication table

    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:


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

Post a Comment