Re: Factorial on RosettaCode

new topic     » goto parent     » topic index » view thread      » older message » newer message

Am I being particularly obtuse? I'd have thought the function would be simply:

function factorial(integer n) 
atom f f=1 while n do f*=n n-=1 end while return f 
end function 

Putting in it's fewest lines, that is? Or is there a particularly nice Euphorian way to do that?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu