title: String reverse in VB Script without using Built in functions
body: <pre><code> option explicit
  
  dim r, res, num
  
  num= cint(inputbox("Enter the number"))
  
    do while(num &gt; 0)
  
   r= num mod 10
  
   num= num\10
  
  res= res &amp; r
  
  loop
  
  msgbox res
  </code></pre>
  
  <p>Well this is the code, now my question is this works perfectly fine for input 1234, well if the input is 0123 it just prints 321 which is wrong.It needs to print 3210. 
  I am unable to figure out, tried a lot but in vain, any help would be appreciated 
  Thanks and Regards</p>