Method 1 : · Create a variable say sum = 0. · Run a loop to iterate over the entire array. · Set sum = sum + arr[i] · After complete iteration print ...
確定! 回上一頁