Untitled

mail@pastecode.io avatar
unknown
python
7 months ago
230 B
0
Indexable
Never
# Replace ___ with your code

# get integer input from the user
n = int(input())

# loop from 1 to n (n should be inclusive) 
for number in 1,n:

    # if number is an odd number, print it
    if number%2!=0:
        print(number)
Leave a Comment