Post Reply 
(42S) challenge: repeat a character N times
01-15-2018, 02:48 PM (This post was last modified: 01-15-2018 02:53 PM by Didier Lachieze.)
Post: #2
RE: (42S) challenge: repeat a character N times
Here is a 22-byte solution. I don't know how much faster it is.

Code:
00 { 22-Byte Prgm }
01▸LBL "$N"
02 X=0?
03 CLA
04 X=0?
05 GTO 00
06 1
07 NEWMAT
08 ATOX
09 +
10 XTOA
11▸LBL 00
12 R↓
13 END
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (42S) challenge: repeat a character N times - Didier Lachieze - 01-15-2018 02:48 PM



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