public static int fun(int i) { if (i<=0) { return 0; } else if (i>0&&i<=2) { return 1; } else { return fun(i - 1) + fun(i - 2); } } //直接调用fun(8)
Powered by: 博客园 Copyright © 2024 清浅ヾ Powered by .NET 9.0 on Kubernetes