the-honk/gcse computer science/year 9/python/python challenges/17 - All odd numbers under 100.py
2021-05-28 21:38:55 +01:00

5 lines
No EOL
110 B
Python

for i in range(100):
i = i + 1;
# if i is not divisible by 2 (odd)
if i % 2 != 0:
print(i)