Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public int fib(int n)
  2. {
  3. if (n < 2)
  4. {
  5. return n;
  6. }
  7. else
  8. {
  9. return fib(n - 1) + fib(n - 2);
  10. }
  11. setScoreToPlayer.Score(n);
  12. }
  13.  
  14. int nave = 2;
  15. int puntos = nave + (Fibonacci(nave) * 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement