Created
May 14, 2011 19:58
-
-
Save shirok/972567 to your computer and use it in GitHub Desktop.
This file contains 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
(define (tak x y z) | |
(if (not (< y x)) | |
z | |
(tak (tak (- x 1) y z) | |
(tak (- y 1) z x) | |
(tak (- z 1) x y)))) | |
(define (main args) | |
(display (tak 24 18 6)) | |
(newline) | |
0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment