home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
b
/
baswiz19.zip
/
BW$BAS.ZIP
/
FACTD.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-29
|
710b
|
18 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' | The BASIC Wizard's Library |
' | |
' +----------------------------------------------------------------------+
DEFINT A-Z
FUNCTION FactD# (Num AS INTEGER)
Result# = 1#
FOR N = 2 TO Num
Result# = Result# * N
NEXT
FactD# = Result#
END FUNCTION