n = int( input( "Enter a number" ) ) for n2 in range( 1, n ): print ( n2 ) while n > 0 : print(n) n = n - 1