title: How to show the input integer in reversed in Visual Basic 6.0
body: <p>Good day! I have a problem in Visual Basic 6.0.</p>
  
  <p>I created two <code>textbox</code>s, 1 for input and one for output.</p>
  
  <p>The output should be the reverse of the input.</p>
  
  <p>Example :</p>
  
  <p>Input : 345<br>
  Output : 543</p>
  
  <p>This is what I've coded so far.</p>
  
  <pre><code>Dim rev, n As Integer
  rev = Val(Text1.Text)
  rev = rev * 10
  rev = rev + n Mod 10
  n = n / 10
  Text2.Text = n
  </code></pre>
  
  <p>Whenever I click the command button, it just returns 0 no matter what value entered in my input.</p>