Anonymous user
Best shuffle: Difference between revisions
m
→{{header|REXX}}: changed output indentation, use verbiage that matched the task's requirements.
m (→{{header|REXX}}: added/changed whitespace and comments, used a template for the output section.) |
m (→{{header|REXX}}: changed output indentation, use verbiage that matched the task's requirements.) |
||
Line 3,042:
same=same + (substr(@.n, m, 1) == substr(new, m, 1) )
end /*m*/
say ' original:' left(@.n, w) 'new:' left(new,w) '
end /*n*/
exit /*stick a fork in it, we're all done. */
Line 3,064:
{{out|output|text= (with a freebie thrown in):}}
<pre>
original: tree new: eert
original: abracadabra new: baaracadrab
original: seesaw new: eswase
original: elk new: lke
original: grrrrrr new: rrrrrrg
original: up new: pu
original: a new: a
</pre>
|