Algorithm · Declare and initialize an array. · The variable sum will be used to calculate the sum of the elements. Initialize it to 0. · Loop through the array and ...
確定! 回上一頁