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

who is the ancestors Ido not understand ​
At the time of her​ grandson's birth, a grandmother deposits $3000 in an account that pays 9.5% compounded monthly. What will be the value of the account at th
Specialties including therapists, athletic trainers, and dietitians fall under the umbrella title of what?
Develop a readable story in about 150 words using the hints given(A man-lives in a small town-fond of pets-has a pup,two kittens-a parrot and a monkey-among all
21. Which of the following statements is true? (1) -18 > -5(2) -5 > -0.5 (3) -5> 0 (4) -5 > 52 (5) -5 > -18​
What are the uses of iron and it's reasons.​
i will give brainliest if correct
Y=-4x-2 and intersects at the points (4,-1)
answer it correctly:)can anyone help me?:) ​
An e-mail program allows? A. users to access and view web pages on the internet. B. geographically separated people to transfer audio and video. C. real-time ex