the-honk/gcse computer science/year 9/python challenges/17 - All odd numbers under 100.py

5 lines
110 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
for i in range(100):
i = i + 1;
# if i is not divisible by 2 (odd)
if i % 2 != 0:
print(i)