[ create a new paste ] login | about

Project: programmingpraxis
Link: http://programmingpraxis.codepad.org/Ti7hK8mt    [ raw code | output | fork ]

programmingpraxis - Scheme, pasted on Dec 13:
1
2
3
4
5
6
; the twelve days of christmas

(define (xmas n)
  (* n (+ n 1) (+ n 2) 1/6))

(display (xmas 12))


Output:
1
364


Create a new paste based on this one


Comments: