Facebook
From Mammoth Parakeet, 9 Years ago, written in C#.
Embed
Download Paste or View Raw
Hits: 594
  1. static int g(int a)
  2. {
  3. if (a > 0) return -2 * g(a - 2) + 2;
  4. else return -2;
  5. }
  6. Console.WriteLine(g(5));