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) 'countscore:' same
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 countscore: 0
original: abracadabra new: baaracadrab countscore: 0
original: seesaw new: eswase countscore: 0
original: elk new: lke countscore: 0
original: grrrrrr new: rrrrrrg countscore: 5
original: up new: pu countscore: 0
original: a new: a countscore: 1
</pre>