Code Search for Developers
 
 
  

factorial.scm from Thousand Parsec at Krugle


Show factorial.scm syntax highlighted

(define (factorial x) 
  (if (= x 0) 
      1 
      (* x (factorial (- x 1)))))

(factorial 10)
(factorial 100)
(factorial 1000)
;;(display (factorial 10000))
;;(newline)




See more files for this project here

Thousand Parsec

Thousand Parsec is a framework for turn based 4 X\'s game (eXplore, eXpand, eXploit, eXterminate). Designed for long games, supporting massive universes and has an easily expanded tech tree.

Project homepage: http://sourceforge.net/projects/thousandparsec
Programming language(s): C++,Python
License: other

  factorial.scm
  generators.scm
  hello.scm
  pairs1.scm
  pocket.scm
  quine.scm
  stack.scm
  test1.scm