lisbethv0225 lisbethv0225
  • 08-12-2020
  • Computers and Technology
contestada

Write a program where you print this sequence.

1

3

5

7

9

Respuesta :

Cytokine
Cytokine Cytokine
  • 08-12-2020

init = 1

choice = int(input("How far into the sequence would you like to go to? "))

i = 0

while i < choice:

   print(init)

   init += 2

   i += 1

If you enter 5, you'll get 1,3,5,7,9. You can also go to whatever place in the sequence you want. I wrote my code in python 3.8. Hope this helps

Answer Link

Otras preguntas

HELP ASAP Newtons three laws of motion: describe the ______ between an object and the forces acting upon it, and it's motion in_______ to those forces
How do I give brainliest?^^
Please tell me the answer of this question, first person to answer will be marked brainlist
what is net netforce?
Name two reasons why people in Medieval Europe would be attracted to Christianity? What did it offer? (2 points)
1. What is the main goal of conservation groups in the Southwest?
which atmospheric layer has the lowest air pressure?
Help I'm not good at this :))
What is the Lcm of 22 and 33 using prime factorization
3. It possible/leave/early? 4. It/important/learn/all/the/words 5. English/easy/understand? 6. Japanese hard/write 7. It/lovely/see/Ann last night 8. This/