Anonymous user
Positive decimal integers with the digit 1 occurring exactly twice: Difference between revisions
Positive decimal integers with the digit 1 occurring exactly twice (view source)
Revision as of 23:12, 8 July 2021
, 2 years ago→{{header|REXX}}: changed a variable name (HI) to lowercase.
m (→{{header|REXX}}: added a 2nd version.) |
m (→{{header|REXX}}: changed a variable name (HI) to lowercase.) |
||
Line 144:
<lang rexx>/*REXX program finds positive decimal integers which contain exactly two ones (1s). */
parse arg hi cols . /*obtain optional argument from the CL.*/
if
if cols=='' | cols=="," then cols= 10 /* " " " " " " */
w= 10 /*width of a number in any column. */
Line 183:
<lang rexx>/*REXX program finds positive decimal integers which contain exactly two ones (1s). */
parse arg hi cols . /*obtain optional argument from the CL.*/
if
if cols=='' | cols=="," then cols= 10 /* " " " " " " */
w= 10 /*width of a number in any column. */
|