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; } }
原文地址:https://www.cnblogs.com/aaaaq/p/8296385.html
时间: 2024-10-03 14:46:00
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; } }
原文地址:https://www.cnblogs.com/aaaaq/p/8296385.html