Factors of an integer: Difference between revisions

Content added Content deleted
Line 697: Line 697:


=={{header|Icon}} and {{header|Unicon}}==
=={{header|Icon}} and {{header|Unicon}}==
{{works with|Unicon}}
<lang Icon>procedure main(arglist)
<lang Icon>procedure main(arglist)
numbers := arglist ||| [ 32767, 45, 53, 64, 100] # combine command line provided and default set of values
numbers := arglist ||| [ 32767, 45, 53, 64, 100] # combine command line provided and default set of values
Line 711: Line 710:
factors of 100=1 2 4 5 10 20 25 50 100</pre>
factors of 100=1 2 4 5 10 20 25 50 100</pre>


The {{libheader|Icon Programming Library}} [http://www.cs.arizona.edu/icon/library/src/procs/factors.icn divisors]
{{libheader|Icon Programming Library}} [http://www.cs.arizona.edu/icon/library/src/procs/factors.icn divisors]


=={{header|J}}==
=={{header|J}}==