home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 92
/
af092a.adf
/
af92.lzx
/
ARexx_Code
/
factorial.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1988-06-24
|
175b
|
12 lines
/* factorial.rexx */
say 'Pick a number?'
pull x
f=Factorial(x)
say 'the factorial of' x 'is' f
exit
Factorial: Procedure
arg n
if n=1 then return(1)
return Factorial(n-1)*n