Factors of an integer: Difference between revisions

m
→‎optimized version: changed wording of comment for modulus (//). -- ~~~~
(→‎optimized version: added code to support bigger numbers. -- ~~~~)
m (→‎optimized version: changed wording of comment for modulus (//). -- ~~~~)
Line 1,699:
<lang rexx>/*REXX program to calculate and show divisors of positive integer(s). */
parse arg low high .; low=word(low 1,1); high=word(high low 20,1)
numeric digits max(9,length(high)) /*ensure enough digits for //modulus has enough digs.*/
 
do n=low to high /*the range default is: 1 ──> 20*/