Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 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; }
1 Antwort
+ 11
int total = 0;
for(int x : arr) {
total += x;
}