Juggler sequence: Difference between revisions

m
→‎{{header|REXX}}: added wording to the REXX section header.
m (→‎{{header|REXX}}: elided an extra blank line in the output section.)
m (→‎{{header|REXX}}: added wording to the REXX section header.)
Line 330:
 
=={{header|REXX}}==
REXX doesn't have a native integer sqrt function, so one was utilized that was previously written.
 
Also, one optimization was to examine the last decimal digit for   ''oddness''   (instead of getting the remainder when
<br>dividing by two).
 
Another optimization was to reduce the number of digits after the &nbsp; sqrt &nbsp; was calculated.
<lang rexx>/*REXX program calculates and displays the juggler sequence for any positive integer*/
numeric digits 20 /*define the number of decimal digits. */