如何定义并使用子函数,使得当输入n时输出第n项斐波那契数如何使单词第一个字母变成大写,其他不变并输出
// 递归法求斐波那契数列第n项 int fib(int n){ if (n==1 || n==2) return 1; return fib(n-1)+fib(n-2); }