Question: 1 . Write a C + + program that does the following: a . Create a C + + file with the name problem 1
Write a C program that does the following:
aCreate a C file with the name problemcpp
bDeclare two integer variables called x and y
cPrompt the user to enter two integer values, reading them into the variables x and y
dPrint the following:
The sum of x and y
y subtracted from x
The product of x and y
The average of x and y
The remainder when x is divided by y
Sample run of the program:
Enter a value for x:
Enter a value for y:
The sum of and is
subtracted from is
The product of and is
The average of and is
The remainder when is divided by is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
