Write a program that asks the user for two integers. The program will then multiply the two numbers and determine whether the product is even or odd. Next, add the two numbers and output whether the sum is even or odd. The program should look like this:
Please enter an integer: 5 [entered]
Please enter another integer: 2 [entered]
The product of 5 and 2 is 10 and is even.
The sum of 5 and 2 is 7 and is odd.
So i tried this, I think im suppose to use "if else" but not sure how to do it.
#include<iostream>
using namespace std;
int main ()
int num;
cout << "Please enter an integer: ";
cin >> num;
int num2;
cout << "Please enter another integer: ";
cin >> num2;
cout << "The product of " << num << "and" << num2 << "is" << num*num2 << endl;
cout << "The sum of " << num << "and" << num2 << "is" << num+num2 << endl;