#
# Author: Muntaser Khan
#
# rangefun2.py
#

for num in range(1,11):
    print (num,end=' ') # end='' keeps loop output on same line
print () # start new line


for num in range(1,10, 2):
    print (num,end=' ') # end='' keeps loop output on same line
print () # start new line

for num in range(47, 0, -46):
    print (num,end=' ') # end='' keeps loop output on same line
print () # start new line

for num in range(10, 0 , -1):
    print (num,end=' ') # end='' keeps loop output on same line
print () # start new line

for num in range(10, 0 , -3):
    print (num,end=' ') # end='' keeps loop output on same line
print () # start new line

for num in range(1,22,4):
    print (num,end=' ') # end='' keeps loop output on same line
print () # start new line