belfast golf
Wilson, Andrew (Belfast)
Andrew.Wilson at trw.com
Mon Mar 25 04:35:19 CST 2002
Hi
On: 22 March 2002 17:10 Jasper McCrea [mailto:jasper at guideguide.com] wrote:
> Keeping in practice a bit for the next Perl Review golf..
>
> given command line number, print out it's factors like
>
> 2 x 2 x 3 x 4 x 5
>
> You get the idea.
> Also has to handle 0 and 1. I'm guessing printint 0 and 1 would be the
> correct answers.
Actually no. I don't get the idea, what's it supposed to be printing?
why is
3 x 4 x 4 x 5
Not the right answer to the example you've given. What number is it
factors for anyway?
cheers
Andrew
More information about the Belfast-pm
mailing list