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

what is the first 5 multiples of 32 and the first 5 multiples of 29
what are the constants of t-shirts
Is a church more than a building? Answers need to be long
does anyone know if 4 can go into 72
what are the general characteristics of substances chemists use to seperate mixtures into individual substances?
how are elements and compounds alike
a symbol for caledonium
Which point(s) in the water cycle below best illustrate(s) water changing to a gas, and which term(s) could describe it? Is it.. 1; sublimation & evaporati
In the state of Georgia, a juvenile who is 13 years of age can be tried as an adult if he or she...
2 4/9 divided by 8/15