C++ Program to Print Multiplication table of Any Number

 #include<iostream>

using namespace std;

int main()

{

int i,n;

cout<<"================================================\n";

cout<<"Enter the numebr whose table you want to print:";

cin>>n;

cout<<"================================================\n";

i=1;

while(i<=10)

{

cout<<n<<" * "<<i<<" = ";cout<<n*i<<"\n";

i++;

}

return 0;

}

Comments

Popular posts from this blog