JavaScript code is simple to find the maximum value of a given line of the Yang hui triangle
- 2020-03-26 21:42:01
- OfStack
function cal(row) {
var result = 1;
for(var i = 0; i < row / 2; i++) {
return result * = (row - i) / i;
}
return result;
};