Skip to content

Instantly share code, notes, and snippets.

@shirok
Created May 14, 2011 19:58
Show Gist options
  • Save shirok/972567 to your computer and use it in GitHub Desktop.
Save shirok/972567 to your computer and use it in GitHub Desktop.
(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