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

why did many aristocrats support legalism
PLEASE CHECK MY ANSWERS (PART 2)
_ is 8% of 200, please help and show work, thanks
two sisters, jenny and penny, play on the same basketball team. last season they scored a combined total of 458 points. jenny scored 192 of the points. write an
which Enlightment thinker wrote that people in society are bound to one another by an implicit ' social contract,,
how many peanuts will each person get if 3 people share 1/5 pound of peanuts equally write and solve a division equation to represent the problem
what does a 220 degree angle look like?
What changes were made in Utah during World War 1?
If a 21 ounce box of cereal costa $2.94,what is the unit price.
by what length is is 0.5 m less than 10.05