Anonymous user
Hailstone sequence: Difference between revisions
m
→optimized: changed comments and whitespace (indentations), elided one line of dead (useless) code.
m (→non-optimized: added/changed comments and whitespace.) |
m (→optimized: changed comments and whitespace (indentations), elided one line of dead (useless) code.) |
||
Line 5,929:
exit /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
hailstone: procedure expose @. !. hm; parse arg n 1 s 1 o,@.1 /*N,S,O:
if @._\==0 then leave /*Was number already found? Return S.*/
return s</lang>▼
▲return s</lang>
'''output''' when using the default inputs:
<pre>
|