Created
December 11, 2012 13:37
-
-
Save 7h3kk1d/4258615 to your computer and use it in GitHub Desktop.
FizzBuzz Test in MIT/GNU Scheme
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 n 0) | |
(do () | |
((= n 101)) | |
(cond | |
((eq? (modulo n 15) 0) (display "FizzBuzz\n")) | |
((eq? (modulo n 3) 0) (display "Fizz\n")) | |
((eq? (modulo n 5) 0) (display "Buzz\n")) | |
(else (map display (list n "\n"))) | |
) | |
(set! n (+ n 1)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment