... 3}; // Accumulate the values in the array into the variable sum. double sum = 0; ... i++) { sum = sum + doublesArray[i]; } // Now calculate the average.
確定! 回上一頁