function fn(x,y){
    if(x===1 || (x==y)){
        return 1
    } else {
return fn(x-1,y-1) + fn(x,y-1);
    }
}
fn(3,6)
10



杨辉三角 递归思想
 

相关文章: