dimitrix85

Untitled

Aug 2nd, 2021
710
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static int fib(int n)
  2.         {
  3.             if (n <= 2)
  4.             {
  5.                 return 1;
  6.             }
  7.  
  8.             return fib(n - 1) + fib(n - 2);
  9.         }
RAW Paste Data