Anonymous user
Talk:Permutations with repetitions: Difference between revisions
Talk:Permutations with repetitions (view source)
Revision as of 06:49, 22 September 2016
, 7 years ago→Isn't it just similar to "Increment_a_numerical_string": new section
(→another variant of the REXX example: fix corrupted program. -- ~~~~) |
(→Isn't it just similar to "Increment_a_numerical_string": new section) |
||
Line 79:
interpret a
say n**m 'permutations'</lang>
== Isn't it just similar to "Increment_a_numerical_string" ==
You set the length of the string to n fill it completly with "0" and set the base to k.
http://rosettacode.org/wiki/Increment_a_numerical_string#Pascal
Of course you can use an array of integer instead.
|