Question: Write a program that reads two integers x and y from the user. It then increments x by 1 using increment (++) operator, decrements y

Write a program that reads two integers x and y from the user. It then increments x by 1 using increment (++) operator, decrements y by 1 using decrement operator (--), and prints the updated values of x and y.

Code:

Screenshot:

Write a program that reads two integers x and y from the
C++

CMP 120L- Programming I Lab 2: Operators Exercise 1: Write a program that reads two integers x and y from the user. It then increments x by 1 using increment (++) operator, decrements y by 1 using decrement operator (--), and prints the updated values of x and y Code: Screenshot

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!