num = int(input("Enter an integer: "))
i = 1
while i <= 3:
print(num+i)
i += 1
I've written my code in python 3+. I hope this helps!
8.7m questions
11.3m answers