Posts

Showing posts with the label Write a python script to print first N odd natural numbers

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