多分支if(布尔表达式){
语句块1;
}else if{
语句块2;
} else{
语句块3;
}
public static int Recursive(int n)
{
if (n == 1 || n == 2)
{
return 1;
}
else if(n>2)
return Recursive(n - 1)+ Recursive(n - 2);
else return 0;/*注释掉此行会报错This method must return a result of type int*/
}
我现在不知道原因