Question: Write a java program that takes a single integer input from the user and stores it in a variable. Your program should increase the value
Write a java program that takes a single integer input from the user and stores it in a variable. Your program should increase the value of this variable by one four times, printing "number is now followed by its value each time, then decrease it by one four times, again printing "number is now and the value each time. You must use unary operators to increasedecrease the value of the variable to receive full credit for this assignment.
Sample Run
Enter starting number must be an integer
number is now
number is now
number is now
number is now
number is now
number is now
number is now
number is now
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
