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.8m questions
11.4m answers