Write a python script to print first N odd natural numbers in reverse order
#Write a python script to print first N odd natural numbers in reverse order
a=int(input("Enter the number"))
i=1
while a>=i:
if a%2!=0:
print(a)
a-=1
#Write a python script to print first N odd natural numbers in reverse order
Comments
Post a Comment