title: How can I add the number and its reverse in Python?
body: <p>I have to add a number and its reverse without using functions or strings.
  This is my code:</p>
  <pre><code>number = int(input(&quot;Enter your number: &quot;))
  revs_number = 0
  while (number &gt; 0):   
      remainder = number % 10  
      revs_number = (revs_number * 10) + remainder  
      number = number // 10
  
  print(&quot;The reverse number is &quot;, revs_number)
  print(number + revs_number)
  </code></pre>
  <p>When I run this, the output is:</p>
  <pre><code>Enter your number: 56
  The reverse number is 65
  65
  </code></pre>
  <p>I tried everything I know but I couldn't add these two. I searched this forum too, couldn't find any solution without strings and functions. Can someone help me please? I really want to learn how because this took my time! Thanks in advance.</p>