C++ Program to Print Table of any Number

ad+1

Program:

// Program By http://solutionscpp.blogspot.com
// Author Mansoor Ahmed
// GMail ID: secguy000@gmail.com


#include<iostream>
using namespace std;

int main()
{
    int num=0;
    cout << "Enter number to print its table: ";
    cin >> num;
    for (int i = 1; i <= 10; i++)
    {
        cout << num << " * " << i << " = " << num*i << endl;
    }
   
    return 0;

}

Output:

1 comment: Leave Your Comments

  1. thank you for sharing useful post.
    c++ programming tutorial
    welookups

    ReplyDelete