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 are irrational numbers? give examples.​
nine times a number p plus two Can someone plss translate this into a algebraic expression.
no one is answering i posted this question 2 times, this is my 3rd time please answer.
all night long the music from the next apartment was banging, thumping and pounded so loudly that I couldn't sleep.what is the error of this sentence?​
Membeam question If I get one more wrong it ruins my score Will mark brainliest
Given one of the interior angles of the hanger, find the measures of angles A and B.
german shepherd golden retriever presian siamese siberian husky​
Why do we tend to attribute others' negative behaviors to dispositions over situational factors?
can someone help me with this question
¿Qué es la urea?(Si no sabes no Respondas)​