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

You shoot an arrow set a target. The parabolic path of the arrow passes through the points shown in table. X. Y 30. 6 60. 7 100. 4 A. Find a quadratic function
I just need the equation on how to do it. I'm so lost :'( help please!!!!!!
let f(x)=2x-3 and g(x)= -x^2-1 find ( g o f) (x)
What is the probability of someone correctly guessing your Social Security number? (Assume all digits 0-9 are available for use)a
You shoot an arrow set a target. The parabolic path of the arrow passes through the points shown in table. X. Y 30. 6 60. 7 100. 4 A. Find a quadratic function
Compute the odds in favor of rolling a sum of 10 in a single roll of two fair dice
let g(x)=x-3 and h(x)=x^2+6 find (h o g) (1)
what is force ?is it desirable or undesirable?
If 52 x equals 7800 y what does 1 x equal? What is the maths equation?
which type of gas is filled in lays pack and why?