更新时间:2018-11-08 21:27作者:王华老师
}
ansewr:
staticintf(inti){
if(i==0){return1;}
else{returnf(i-1)*f(i-2);}
}
ansewr:
b.therearetwoerrorsinthefollowingjavaprogram:
staticvoidg(inti){
if(i==1){return;}
if(i%2==0){g(i/2);return;}
else{g(3*i);return;}
}
pleasecorrectthemtomakesurewecangetthepri
nted-outresultasbelow:
3105168421