title: Python reverse integer using recursion
body: <p>I am working on a problem that need to reverse a integer input without using list or string.
  But my program only return first and last digits.</p>
  
  <pre><code>def reverseDisplay(number):
     if number&lt;10:
        return number 
     else:
        return reverseDisplay(number//10)
  def main():
      number=int(input("Enter a number:"))
      print(number%10,end='')
      print(reverseDisplay(number))
  main()
  </code></pre>
  
  <p>It's seems like the reverse function just worked only once.</p>