home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / logo / winlogo / lib / fact.lg < prev    next >
Text File  |  1990-06-11  |  73b  |  5 lines

  1. to fact :n
  2. if equalp :n 1 [output 1]
  3. output (fact (:n - 1)) * :n
  4. end
  5.