Anonymous user
Largest int from concatenated ints: Difference between revisions
Largest int from concatenated ints (view source)
Revision as of 17:56, 3 February 2021
, 3 years ago→{{header|REXX}}: cleaned up some code for literals.
m (→{{header|REXX}}: simplified some code, added/changed whitespace and comments, used a smaller font for the output for the 2nd example.) |
m (→{{header|REXX}}: cleaned up some code for literals.) |
||
Line 1,939:
===simple integers===
<lang rexx>/*REXX program constructs the largest integer from an integer list using concatenation.*/
@.=.; @.1 =
@.2 =
@.3 =
w=0 /* [↓] process all the integer lists.*/
do j=1 while @.j\==.; z= space(@.j) /*keep truckin' until lists exhausted. */
Line 1,977:
<br>digits, but displaying the result would be problematic for results wider than the display area).
<lang rexx>/*REXX program constructs the largest integer from an integer list using concatenation.*/
@.=.; @.1 =
@.2 =
@.3 =
@.4 =
w= 0 /* [↓] process all the integer lists.*/
do j=1 while @.j\==.; z= space(@.j) /*keep truckin' until lists exhausted. */
|