05-03-2003, 05:30 PM
Code:
FUNCTION Factorial& (n&)
IF n& < 0 THEN
ERROR 18 ' Function not defined.
ELSEIF n& = 0 THEN
Factorial& = 1
ELSE
Factorial& = Factorial&(n& - 1) * n&
END IF
END FUNCTION
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i