Question: Q3.(10 points) Write an if statement that adds 1 to x if x is negative and subtracts 1 from x if x is positive but

Q3.(10 points) Write an if statement that adds 1 to x if x is negative and subtracts 1 from x if x is positive but sets x to 1 if x is 0 . Assume x is a predefined and initialized integer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
