HP Forums

Full Version: (38G) Digit Reversal, OEIS A004086
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The programme REVN takes a natural number input from Ans & returns the digit reversed number in Ans & variable T.

This is

https://oeis.org/A004086

REVN

Code:
Ans►N:
0►T:
WHILE N
REPEAT
N MOD 10+T*10►T:
INT(N/10) ►N:
END:
T:
Reference URL's