2062886 2062886
  • 01-12-2019
  • Computers and Technology
contestada

Ask the user to input an integer. Print out the next three consecutive numbers. in python

Respuesta :

pagaf55306 pagaf55306
  • 01-12-2019

Answer:

Explanation:

n = int(input("Enter Number : "))

print(n+1,n+2,n+3)

Answer Link
guidopot0218 guidopot0218
  • 14-09-2021

Answer:

In python, the code would be written as...

Explanation:

n = int(input("Enter Number : "))

print(n+1,n+2,n+3)

You are printing both the number and the next three consecutive numbers after that. which essentially your answer "n" plus the numbers that create the next number "n+1" = your answer plus 1, "n+2" = your answer plus 2, etc.

Answer Link

Otras preguntas

Six-, seven-, and eight-year-olds a. become logical thinkers. b. make lasting friendships. c. do a great deal of tattling and boasting. d. are seldom aggressive
when a car is going downhill, the driver must apply more pressure on the brakes to stop than if the car were on level ground. why?
what do i do next?(with the X's)
what is a gcf of two numbers?
Wilma is thinking of a number that is divisible by both 17 and 8. What is the smallest possible number that Wilma could be thinking of? Is it greatest common fa
What effect does observing a substances physical properties have on the substance
jack drove at an average speed of 47.3 miles per hour for 2.5 hours. how far did he drive? 118.25 49.8 44.8 18.92
what's a polygon with 5 sides
i dont understand that can u please help me
—¿_____ vas al cine? —Con mis amigos. A. Por qué B. Dónde C. Cuántos D. Con quién