Advertisement
Guest User

Untitled

a guest
May 24th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. int fibLast(int n){
  2. if(n==0)
  3. return 0;
  4. if(n==0)
  5. return 0;
  6. else
  7. return (fibLast(n-1)+fibLast(n-2))%10;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement