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

If 60% of a car company's sales are from SUVs, and they sell a total of 360 cars that are not SUVs, how many SUVs did they sell?
Use the associative property of addition to rewrite (6 + 44) + 28.
The jamestown colonists set a political precedent by:.
10/6 / 1/24 Find Qoutient
why do i have to take art to take pottery
can you answer the question on the picture it wont let me type this one
how would i go about simplifying (x+h)^3?
Which shows a complete list of factor pairs for the number 40?
Which sentence below punctuates the dialogue correctly? a) "How much for a small t-shirt?" asked kaitlyn. b) "You can have it for free" the worker replied "we
PLZ HELP 50 POINTS Read the following passage written by a teen hero: I want to be a vocal advocate for nature. I reject the idea that I am too young to make a