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 >
BASIC Source File  |  1993-01-29  |  710b  |  18 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        BASWIZ  Copyright (c) 1990-1993  Thomas G. Hanlin III         |
  4. '   |                                                                      |
  5. '   |                      The BASIC Wizard's Library                      |
  6. '   |                                                                      |
  7. '   +----------------------------------------------------------------------+
  8.  
  9.    DEFINT A-Z
  10.  
  11. FUNCTION FactD# (Num AS INTEGER)
  12.    Result# = 1#
  13.    FOR N = 2 TO Num
  14.       Result# = Result# * N
  15.    NEXT
  16.    FactD# = Result#
  17. END FUNCTION
  18.