Permutations: Difference between revisions

m
→‎version 2: changed section header comment (added ''taken'' to the text). -- ~~~~
m (→‎version 1: changed name of internal subroutine, added whitespace, changed indentation. -- ~~~~)
m (→‎version 2: changed section header comment (added ''taken'' to the text). -- ~~~~)
Line 2,158:
===version 2===
This version is modeled after the Maxima program (as far as output).
<br><br>It doesn't have the formatting capabilities of REXX version 1, nor can it handle taking <math> X </math> items taken <math> Y </math> at-a-time.
<lang rexx>/*REXX program shows permutations of N number of objects (1,2,3, ...).*/
parse arg n .; if n=='' then n=3 /*Not specified? Assume default*/