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:
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
Get step-by-step solutions from verified subject matter experts
