(define (fizzbuzz n) (define (fizzbuzzx n i) (if (> i n) '() (cons (cond ((= (modulo i 15) 0) "FizzBuzz") ((= (modulo i 5) 0) "Buzz") ((= (modulo i 3) 0) "Fizz") (else i)) (fizzbuzzx n (+ i 1))))) (fizzbuzzx n 1)) (define (print-list lst) (if (null? lst) "EOF" (begin (print (car lst)) (print-list (cdr lst))))) (define (main args) (print-list (fizzbuzz (read)) 0)