[CODE]
#include <stdio.h>
/*未经测试*/
int f(int n)
{
if (n > 2) return f(n - 1) + f(n - 2);
else if (n == 2 || n == 1) return 1;
}
int main()
{
int i;
for (i = 1; i <= 10; i++) printf("a%d = %d\n", i, f(i));
getch();
return 0;
}
[/CODE]