Question: 8.Write C++ statements to do the following:a) Declare int variable num1 and num2.b) Prompt the user to input two numbers.c) Assign the first input number

8.Write C++ statements to do the following:a) Declare int variable num1 and num2.b) Prompt the user to input two numbers.c) Assign the first input number to num1 and the second input number to num2d) Output num1, num2, and 2 times (num1 minus num2). Your output must identify each variable name followed by its value, then the expression for 2 times (num1 minus num2) followed by its value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!