Phrase reversals: Difference between revisions

m
→‎version 2: changed a comment.
m (→‎version 2: changed comments, used a template for the output section.)
m (→‎version 2: changed a comment.)
Line 1,780:
L=; W= /*initialize two REXX variables to null*/
do j=1 for words($); _= word($, j) /*extract each word in the $ string. */
L= L reverse(_); W= _ W /*reverse letters; reverse wprdswords. */
end /*j*/
say ' the original phrase used: ' $