Computer Science, asked by pratiksha1126, 3 months ago

Write a python program to print all odd numbers between 1 to 100​

Answers

Answered by purveshKolhe
6

Answer:

i=0

while i<100:

if i%2!=0:

print i

i=i+1

hope it helps

Answered by atrs7391
11

\texttt {for i in range(1, 101):}

   \texttt {if i } % \texttt{ 2 == 1:}

       \texttt{print(i)}

Similar questions