The trouble is you think you have time. Your success depends on how you utilize your time.

C++ Program to Print multiplication tables of a number by taking input to desire number.


Write a C++ to print Multiplication table of a number by taking Input and print them to the desire number :

using namespace std;
#include<iostream>
#include<conio.h>
int main()
{
cout<<"www.moznum.blogspot.com"<<endl<<endl;


int i,n,x;
cout<<"Please Enter the Number of which you want to print Table: ";
cin>>n;
cout<<endl<<"Thanks For Entering,\nPlease Enter The number to which You Want to print Table: ";
cin>>x;

for(i=1;i<=x;i=i+1)
{
cout<<n<<" * "<<i<<"= "<<n*i<<endl;
}
getch();

}

You Can also Find this program by this:
How to write a c plus plus program which can print the multiplication table of a number which can b taken by taking input , and print the table to the desire number which is also taken by input.

No comments:

Post a Comment