Created
July 27, 2015 15:09
-
-
Save hamada-lemois/46597bc0418bd37a221a to your computer and use it in GitHub Desktop.
フィボナッチ数列
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun fib (count) | |
| (defun fib-it (a b i count) | |
| (format t "~a~%" a) | |
| (if (< i count) | |
| (fib-it b (+ a b) (incf i) count))) | |
| (fib-it 0 1 0 count)) | |
| (fib 100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment