Jump to content

Yellowstone sequence: Difference between revisions

m
→‎{{header|REXX}}: changed a comment.
m (→‎{{header|REXX}}: simplified the logic.)
m (→‎{{header|REXX}}: changed a comment.)
Line 71:
 
=={{header|REXX}}==
<lang rexx>/*REXX program calculates and displays any number of terms in the Yellowstone (permutation) sequence. */
parse arg m . /*obtain optional argument from the CL.*/
if m=='' | m=="," then m= 30 /*Not specified? Then use the default.*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies.