Factors of an integer: Difference between revisions

no edit summary
(→‎{{header|Pascal}}: add example)
No edit summary
Line 1,336:
}</lang>
Here the range of integers is only taken up to the square root of the number, the same filtering applies. Afterwards the corresponding larger factors are calculated and sent down the pipeline along with the small ones found earlier.
 
=={{header|ProDOS}}==
Uses the math module:
<lang ProDOS>editvar /newvar /value=a /userinput=1 /title=Enter an integer:
do /delimspaces %% -a- >b
printline Factors of -a-: -b- </lang>
 
=={{header|Prolog}}==
Anonymous user