198k views
4 votes
Om/courses/50551/assignments/6635468

де
Illuminate Home Co...
A Lessons
G Image result for car...
G gonzales ca weathe...
google classroom
Ask the user to input an integer. Print out the next three consecutive numbers.
Sample Run
Enter an integer: 4
5
6
7

1 Answer

7 votes

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!

User Obelia
by
7.5k points