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

A curved section of roadway is in the shape of a circular arc of 410-m radius. The curved section is horizontal, not banked. The coefficient of friction for tir
how do u find the area of a triangle
Find 4 consecutive odd integers where the product of the two smaller numbers is 64 less than the product of the two larger numbers.
Hello, I need help please for mission 3 thank you very much.
How is 3x-y=8 and x+2y=5 solved by combination (addition)?????
find a common solution for each system of equations: y=3x+5 y=-5x-3
A curved section of roadway is in the shape of a circular arc of 410-m radius. The curved section is horizontal, not banked. The coefficient of friction for tir
find a common solution for each system of equations: y=3x+5 y=-5x-3
select the product of (3x-4)(3x4)
in the xy-plane above, point c has coordinates (6,9). which of the follwoing is an equation of the line that contains points 0 and c?