fork(1) download
  1. a=int(input())
  2. b=int(input())
  3.  
  4. for i in range (a,b):
  5. print (i,end=" ")
  6.  
  7. print()
  8.  
  9. for j in range (b,a,-1):
  10. print (j, end=" ")
  11.  
Success #stdin #stdout 0.02s 9192KB
stdin
3
6
stdout
3 4 5 
6 5 4