Ask the user to input an integer. Print out the next three consecutive numbers.
Sample Run
Enter an integer: 4
5
6
7
Answers
Answered by
0
Hello Friend,
The following code is in python,Hope you will get that.
ask=int(input("Enter an integer"))
for x in range(ask+1,ask+3):
print(x)
#ask is a variable.
Thank You..
Similar questions