Find odd numbers between 1 to 100 using for loop
# Write a program to print only odd numbers between 1 to 100 using for loop
for x in range(100):
# Here Check if x is even
if x % 2 == 0:
continue
print(x)
Output:
# Write a program to print only odd numbers between 1 to 100 using for loop
for x in range(100):
# Here Check if x is even
if x % 2 == 0:
continue
print(x)
Output: