Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Write a function (or equivalent subprogram) to accept a single integer valued argument and return a (similarly typed) value found by reversing the order of the base-10 digits of the argument.
For example given 76543 return 34567
I decided to make a function instead of hardcoding it.
The code is pretty self-explanatory.
SELECT 0+REVERSE(:1||'')FROM DUAL;
Replace n with your number