Post Reply 
Programming puzzles: processing lists!
02-13-2019, 09:03 PM (This post was last modified: 02-13-2019 09:05 PM by John Keith.)
Post: #270
RE: Programming puzzles: processing lists!
My solution to #44, somewhat similar to David's.

Code:

Spoilers...











\<< LRPCT OBJ\->
   \<< IF OVER
       THEN NIP R\->I LSEQ
       ELSE LMRPT
       END
   \>> DOLIST
\>>

If real numbers are desired, eliminate the R\->I.
To add an offset to the result, put 6 ADD after LSEQ.
.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - John Keith - 02-13-2019 09:03 PM



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