为什么错误?请问哪里有问题啊
#include
int getAge(int n){ int age5; if(n==1) age5 = 10; else age5 = getAge(n-1)+2; return age5; } int mian() { int age = getAge(5); printf("第5个人的年龄是:",age); return 0; }#include
int getAge(int n){ int age5; if(n==1) age5 = 10; else age5 = getAge(n-1)+2; return age5; } int mian() { int age = getAge(5); printf("第5个人的年龄是:",age); return 0; }2017-08-31
举报