¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
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 Respuestas
+ 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