Skip to content

Instantly share code, notes, and snippets.

@funrep
Created September 18, 2013 14:00
Show Gist options
  • Select an option

  • Save funrep/6609549 to your computer and use it in GitHub Desktop.

Select an option

Save funrep/6609549 to your computer and use it in GitHub Desktop.
#lang racket
(define (fib n)
(if (< n 2)
n
(+ (fib (- n 1)) (fib (- n 2)))))
(display (fib 10))
(display "\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment