37.7k views
2 votes
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

5 votes

I've included my code in the picture below. Best of luck.

Ask the user to input an integer. Print out the next three consecutive numbers. Sample-example-1
User Kryger
by
5.9k points