The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





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 


Messages In This Thread
(38G) Digit Reversal, OEIS A004086 - Gerald H - 10-04-2017 01:36 PM



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