#include <iostream>
using namespace std;
int main() {
cout << "Enter an integer: \n";
int firstnumber;
cin >> firstnumber;
if (!cin) {
cout << "Invalid input \n";
return 0;
}
cout << "Enter another integer: \n";
int secondnumber;
cin >> secondnumber;
if (!cin) {
cout << "Invalid input\n";
return 0;
}
cout << "Product: " << firstnumber * secondnumber << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: