This is a simple and easy c++ program to multiply two numbers entered by the user while executing this program. I assume you have basic knowledge of c++ programming language.
In the below program, we have used three variables x, y, and multiplication. x and y to hold the value of entered by the user and then multiply using the multiply operator (x) and store into multiple variables.
Copy the below program and execute it with the help of CPP compiler.
using namespace std;
int x, y, multiplication;
cout << "Enter two integers for multiplication: ";
cin >> x >> y;
// stored result in third variable
multiplication = x * y;
// Prints multiplication value
cout << x << " * " << y << " = " << multiplication;
Enter two integers for multiplication: 15
15 * 10 = 150
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.