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.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <iostream> using namespace std; int main() { 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; return 0; } |

Enter two integers for multiplication: 15

10

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.

- C++ implementation to Print All Nodes that don’t have Sibling
- Finding subarray with given sum using c++
- C++ program to reverse a single linked list
- c++ program to remove vowels from a string
- CPP program to check if a number is Wagstaff prime or not
- CPP program to remove punctuation from a given string
- C++ program to find minimum players required to win the game anyhow
- C++ program to print primes smaller than n using Sieve of Sundaram
- C++ program to find count of divisors in n!
- C++ implementation to sort the given matrix

Article Tags: c program, c programs, how to multiply two numbers using c++, multiply 2 numbers, multiplying two numbers using c++, two number multiplication in c++

We use cookies to ensure that we give you the best experience on our website. We and our partners are using technologies like cookies in order to personalize the advertising that you see. This helps us to show you more relevant ads and improves your internet experience. Read more about our Privacy Policy.Got it!