1.

Write a C++ program to print multiplication table of a given number.

Answer»

# include

using namespace std;

int main ()

{

int num;

cout << “Enter Number to find its

multiplication table”; cin >>num;

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

{

cout<<num <<“*” << a << “ = ” <<

num*a << endl;

}

return( );

}



Discussion

No Comment Found