for each loop | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

for each loop

Fill in the blanks to use the enhanced for loop for an array called "arr": int total = 0; for(int x ) { total += x; }

15th Nov 2017, 6:13 AM
sher Alam
sher Alam - avatar
1 ответ
+ 11
int total = 0; for(int x : arr) { total += x; }
15th Nov 2017, 6:20 AM
qwerty
qwerty - avatar