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

what is the defenition of reformation
An object is undergoing simple harmonic motion of amplitude 2.3 m. if the maximum velocity of the object is 10 m/s, what is the object's angular frequency?
Find surface area (not volume)
Once out in space, the space shuttle needs to ________________ to keep going in the same direction at the same speed.
what led to the creation of the loyal legion of lumberman and loggers? PLEASE HELP
what is 8/1 x 91/10?
It is not only the individual who has been drinking or using drugs who can be the victim of a crash in america blank people will be involved in the alcohol rela
what is the answer to 2/5 × 5/6
On monday the temperature was 50 degrees the temperature increased by 22%. what was the temperature on tuesday.
What type of error can be found in the paragraph below? Every year, people come from all over the world to visit Walt Disney World in Florida. Many peopl