Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
I've got problems with this exercise
Fill in the blanks to calculate the sum oft all elements in the array "arr" using the enhanced for loop: int res=0; ___(int el___arr){ res+=__; }
4 Antworten
+ 11
int res=0;
for(int el : arr){
res+= el;
}
0
int res=0;
for(int el : arr){
res+= el;
0
int res=0;
for(int el : arr){
res+= el;
0
for
:
el