Answer:
Question is answered using python:
num = int(input("User Input: "))
for i in range(3):
num = num+1
print("Number is now "+str(num))
for i in range(3):
num = num-1
print("Number is now "+str(num))
Explanation:
This line prompts user for input
num = int(input("User Input: "))
The following iterates from 1 to 3
for i in range(3):
This increments user input each time
num = num+1
This prints the value of num after increment
print("Number is now "+str(num))
The following iterates from 1 to 3
for i in range(3):
This decrements the value of num
num = num-1
This prints the value of num after decrement
print("Number is now "+str(num))