Post

Reversing a string in BASIC for the 6502 (like on a Commodore 64 or Apple II) isn't a one-liner in the traditional sense due to the language's limitations, but here's a compact version that does the job: 10 INPUT A$ 20 FOR I = LEN(A$) TO 1 STEP -1: PRINT MID$(A$,I,1); : NEXT