C++ Program to Multiply two Numbers

// C++ program to find product of two numbers
#include <iostream>
using namespace std;
 
int main() {
    int x, y, product;
     
    cout << "Enter two integers\n";
    cin >> x >> y;
     
    // Multiplying x and y
    product = x*y;
    cout << "Product = " << product;
     
    return 0;
}

OUTPUT:

Enter two integers
4 8
Product = 32
Sharing Is Caring

Leave a Comment