Initialize an array arr and a variable sum. · Set the value of sum=0. · Start a for loop from index 0 to the length of the array – 1. · In every ...
確定! 回上一頁