daily pastebin goal
64%
SHARE
TWEET

dcsfib

a guest Jan 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -module(dceleje).
  2. -export([dcsfib/1]).
  3.  
  4. dcsfib(0)->
  5.     1;
  6. dcsfib(1) ->
  7.     1;
  8. dcsfib(N) when N>10 ->
  9.     dcsfib(N-1) + dcsfib(N-2);
  10.  
  11. dcsfib(N) when N < 10, N>1 ->
  12.     dcsfib(N-1) + dcsfib(N-2).
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top