Anonymous user
Smallest square that begins with n: Difference between revisions
m
→{{header|REXX}}: changed wording in the REXX section header.
m (→{{header|REXX}}: changed the program to include more information in the output title.) |
m (→{{header|REXX}}: changed wording in the REXX section header.) |
||
Line 161:
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 is wider than expected, it won't be truncated.
<lang rexx>/*REXX program finds and displays (positive integers) squares that begin with N. */
numeric digits 20 /*ensure that large numbers can be used*/
|