Question: Write a program that: Declare two variables; initialize the second variable to be 1 0 0 0 Gets a value of the first variable from
Write a program that:
Declare two variables; initialize the second variable to
be
Gets a value of the first variable from the user
If the first variable is the program increments the
first variable
If the first variable is the program decrements the
first variable and increments the second variable
If they first variable is the program increments
the first variable and decrements the second variable
In all other cases, the program sets both variables to
Print the final result on screen
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
