Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

This program will involve basic math. First you are going to create a main function and create two integer variables. Then you will read in two integers from the console (use cin). Then you will...

1 answer below »

This program will involve basic math.

First you are going to create a main function and create two integer variables.

Then you will read in two integers from the console (use cin).

Then you will create a variable and store the result of the two integers multiplied.

Display the result of the two numbers multiplied together and a new line.

Then add the two numbers and store the result in the variable you created.

Display the result of the two numbers added together and a new line.


Answered Same Day Jun 14, 2021

Solution

Aditya answered on Jun 14 2021
174 Votes
#include using namespace std;
int main()
{
int num1;
int num2;
cin
num1;
cin
num2;
int mul;
mul = num1*num2;
cout
mul
endl;
int sum;
sum = num1+num2;
cout
sum
endl;
return 0;
}
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here