In this tutorial, you will learn how to write a C++ Program to multiply the two given numbers using Arithmetic Multiplication Operator.

C++ Multiply Two Numbers

To multiply two numbers in C++, use Arithmetic Multiplication Operator (+). Pass the two numbers as operands to the Multiplication Operator, and it returns the product of two numbers.

Program

In the following C++ Program, we read two numbers from user, and find their product.

main.cpp

</>
Copy
#include <iostream>
using namespace std;

int main() {
    int a, b;
    cout << "Enter first number  : ";
    cin >> a;
    cout << "Enter second number : ";
    cin >> b;
    
    int result = a * b;
    cout << "Multiplication : " << result << endl;
}

Output

Enter first number  : 2
Enter second number : 5
Multiplication : 10
Program ended with exit code: 0
Enter first number  : 8
Enter second number : 74
Multiplication : 592
Program ended with exit code: 0

Conclusion

In this C++ Tutorial, we learned how to multiply two numbers using Arithmetic Multiplication Operator.