+ 3
Help me plz to fill in the blanks to calculate the sum of all elements in the array "arr" using an enhanced for loop
Int res = 0 ___(int el__arr) { res+=___; }
1 Answer
+ 10
int res=0;
for(int el:arr){
res+=el;
}
Int res = 0 ___(int el__arr) { res+=___; }