let arr = [66,77,88,99]
let sum = 0
for (let i = 0i <arr.lengthi++) {
sum += arr[i]
}
console.log(sum / num)
提示:输入输出你自己修改一下,如果let报错就把所有let改成var
let arr = [66,77,88,99]
let sum = 0
for (let i = 0i <arr.lengthi++) {
sum += arr[i]
}
console.log(sum / num)
提示:输入输出你自己修改一下,如果let报错就把所有let改成var