Declare a variable to store the sum. Say int sum;. 2.We should initialize the sum variable to 0.i.e. sum = 0;. 3.Loop through all the elements in the array ...
確定! 回上一頁