by CodeChum Admin
Looping numbers is fun, but it's even more exciting when we combine complex tasks to it, just like looping through a series of numbers and performing a series of code only to special numbers, like odd ones! And today, we're going to do just that.
Are you ready?
Instructions:
Input
A line containing an integer.
10
Output
Multiple lines containing an integer.
9
7
5
3
1
n = int(input())
while n:
if (n%2==1): print(n)
n-=1
Comments
Leave a comment