0

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+=__; }

18th Jun 2017, 4:23 AM
Jelin
Jelin - avatar
4 ответов
+ 11
int res=0; for(int el : arr){ res+= el; }
18th Jun 2017, 4:53 AM
Shamima Yasmin
Shamima Yasmin - avatar
0
int res=0; for(int el : arr){ res+= el;
11th Feb 2018, 3:49 AM
Furqan Iqbal
Furqan Iqbal - avatar
0
int res=0; for(int el : arr){ res+= el;
27th Jul 2019, 7:13 AM
Muhammad Manik Uddin
Muhammad Manik Uddin - avatar
0
for : el
2nd Feb 2020, 4:36 AM
GOVINDHARAJPERUMAL R
GOVINDHARAJPERUMAL R - avatar