Пример #1
0
 ///////////////////////////////////////////////////////////////////////////////////
 void FibImpl(int fnext, int f, int count, StackContext stack)
 {
     if (count == 0)
     {
         stack.Exit(f);
     }
     else
     {
         stack.Push(fnext + f, fnext, count - 1);
     }
 }