Post Reply 
(38G) Digit Reversal, OEIS A004086
10-04-2017, 01:36 PM
Post: #1
(38G) Digit Reversal, OEIS A004086
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:
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)