Factors of an integer: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: indented DO loops, added comments. -- ~~~~) |
m (→{{header|REXX}}: split a joined line. -- ~~~~) |
||
Line 1,718: | Line 1,718: | ||
if k==1 then p.1=p.1 arg(k) /*append (ascending) to low list*/ |
if k==1 then p.1=p.1 arg(k) /*append (ascending) to low list*/ |
||
else p.2=arg(k) p.2 /*build (descending) to high list*/ |
else p.2=arg(k) p.2 /*build (descending) to high list*/ |
||
end /*k*/ |
end /*k*/ |
||
return</lang> |
|||
'''output''' when the input is: <tt> 1 200 </tt> |
'''output''' when the input is: <tt> 1 200 </tt> |
||
<pre style="height:30ex;overflow:scroll"> |
<pre style="height:30ex;overflow:scroll"> |