Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Code

Name: Anonymous 2018-10-11 15:00

Learn how to code for fun here! 😀 http://codegym.cc

Name: Anonymous 2019-01-30 7:33

This is how you write a Fibbonacci function in CHICKEN Scheme.

(define (fib n)
(cond
((= n 0) 0)
((= n 1) 1)
(else
(+ (fib (- n 1))
(fib (- n 2))))))


Write a recursive function in CHICKEN Scheme that calculates the factorial.

E.g. 4! = 4*3*2*1 = 24

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List