Python Program to print odd numbers between 1 to n using For loop
Write Python Program to print odd numbers between 1 to n using For loop
# Write Python Program to print odd numbers between 1 to n using For loop n = 20 for i in range(n): if (i % 2 == 1): print(i, end = ' ')
Output:
1 3 5 7 9 11 13 15 17 19