private static void RecursionAlgorithm(int end) { int a = 1, b = 0, c = b; while (true) { c = a + b; a = b; b = c; Console.Write(c + " "); if (c > end) break; } }