Sends for the fellow dear visitors:
Welcome to DongPad!
如题,1+1+2+3+5+8+13+…?
let sumfib n = let rec fib x = match x with | 1 -> 1 | 2 -> 1 | x -> fib(x-2)+fib(x-1) let rec addfib x = match x with | 1 -> 1 | x -> fib (x)+ addfib (x-1) addfib n
cool!
Tags: DongPad
Powered By DongPad CopyRight 2008-2011, xhtml | css
Processed in 0.046 seconds(s) , 沪ICP备08111450号