Computer Science, asked by akshathasenak, 4 months ago

pls answer this question as I can't send this question

Attachments:

Answers

Answered by atrs7391
2

"""

Project Type: Brainly Answer

Date Created: 11-02-2021

Date Edited Last Time: ---NIL---

Question Link: https://brainly.in/question/34990563

Question: Generate the first five odd numbers between 1 - 20.

Program Created By: atrs7391

Programming Language: Python

Language version (When program created or last edited): Python 3.9.1

"""

lp = 0

for i in range(1, 20):

   if i % 2 == 1:

       print(i, end=" ")

       lp = lp+1

   if lp == 5:

       break

Attachments:
Similar questions