Write a python script to print first N odd natural numbers

 #Write a python script to print first N odd natural numbers

a=int(input("Enter the number"))
i=1
u=0
while i<=a:
    if i%2!=0:
     print(i)
    i+=1

Comments

Popular posts from this blog