title: Reverse the given number program in PL/SQL
body: <p>I was trying to execute this program but it only outputs the <code>~</code> symbol. </p>
  
  <p>This is the code:</p>
  
  <pre><code>DECLARE
     N_NUM   NUMBER := 234;
     N_REM   NUMBER;
     N_REV   NUMBER := 0;
  BEGIN
     WHILE N_NUM != 0
     LOOP
        N_REM := MOD (N_NUM, 10);
        N_NUM := (N_NUM / 10);
        N_REV := N_REV * 10 + N_REM;
     END LOOP;
  
     DBMS_OUTPUT.PUT_LINE (N_REV);
  END;
  </code></pre>