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