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

Use the picture, please help.
Whats 3x + 2.3 - 7x pls i got not much time
The regulatory authority will hold you responsible for ensuring that a. guests use clean tableware when returning to self-service areas. b. meat is checked fo
standing on your tiptoes requires contraction of which lower leg muscle?
What is the biggest lesson u have learned this past year about yourself as a learner?
2. Find the missing side length of the right triangle below?
What is the difference between Italian classic cinema and Hollywood classic cinema?
Does anybody have any ideas for Wall art in a blue room. (P.S. I love arctic foxes, dolphins and phoenixes)
NEED THIS NOW!!! PLEASE ANSWER ASAP 100 POINTS Read the poem. Then answer the question. The Raven by Edgar Allen Poe Once upon a midnight dreary, while I ponder
An organism with a diploid number of 2n=16 has how many pairs of homologous chromosomes?.