Smallest square that begins with n: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added the computer programming language REXX.)
m (→‎{{header|REXX}}: changed wording in the REXX section header.)
Line 159: Line 159:


=={{header|REXX}}==
=={{header|REXX}}==
A little extra code was added to display the results in a table,   the width of the table can be specified.
A little extra code was added to display the results in a table,   the number of columns in the table can be specified.


Also, the output display was generalized so that if a larger number than expected won't be truncated.
Also, the output display was generalized so that if a larger number than expected,   it won't be truncated.
<lang rexx>/*REXX program finds and displays (positive integers) squares that begin with N. */
<lang rexx>/*REXX program finds and displays (positive integers) squares that begin with N. */
numeric digits 20 /*ensure that large numbers can be used*/
numeric digits 20 /*ensure that large numbers can be used*/