📜  赔率数字公式的三角形总和 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:54.583000             🧑  作者: Mango

代码示例1
function rowSumOddNumbers(n) {
    return Math.pow(n,3)
}

console.log(rowSumOddNumbers(1))
console.log(rowSumOddNumbers(2))
console.log(rowSumOddNumbers(3))
console.log(rowSumOddNumbers(4))
console.log(rowSumOddNumbers(5))
console.log(rowSumOddNumbers(42))