Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. tribonacci_r(n)
  2. {
  3. if(n=0) return 0;
  4. if(n=1) return 0;
  5. if(n=2) return 1;
  6. return(tribonacci_r(n-1)+tribonacci_r(n-2)+tribonacci_r(n-3));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement