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

By which colour settlement is represented in toposheet ?​
EVENT: All grasses in Savanna were burned due to forest fire. What will happen to the herbivores like giraffe and gazzale?​EFFECT;
What will happen to an object if you throw it in space?
crossing over helps promote what?
5 + ( −3 ) ( 6x − 5 ) ?
A 25-N force accelerates a boy on a cart at 0.5 m/s2. What is the mass of the boy and the cart? (Hint: Solve newton’s second law for mass).
what is the radius? plzzzz helppppp​
Who claimed Uruguay? Portugal England Spain France\
what is the y-int of this graph?
The distance between Station A and Station B is 4.8 miles. The distance between Station B and Station C is 16 miles. A train takes 4 minutes to travel from Stat