Reverse the gender of a string: Difference between revisions

→‎{{header|REXX}}: simplified the TELL subroutine, added output for the task's example.
m (→‎{{header|REXX}}: added some words, combined some similar word-pairs (statements) into one REXX statement.)
(→‎{{header|REXX}}: simplified the TELL subroutine, added output for the task's example.)
Line 1,124:
$=x
end /*until*/
if strip($)\=='' then say strip($)
say
return</lang>
This REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console).
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[LINESIZE.REX]]. <br>
{{out|output|text=&nbsp; when using the input of: &nbsp; She was a soul stripper. She took my heart!}}
<pre>
───────────────────────────────────────────── old ─────────────────────────────────────────────
She was a soul stripper. She took my heart!
 
────────────────────── There're 2776 words in the gender bender list. ───────────────────────
 
───────────────────────────────────────────── new ─────────────────────────────────────────────
He was a soul stripper. He took my heart!
</pre>
{{out|output|text=&nbsp; when using the default input:}}
<pre>