0
How can I code this in another way? Or another method?
for(int i=0; i<amt.length; i++) { amount+=amt[i]; }
2 Réponses
0
Sum of elements in array => look at the code
https://code.sololearn.com/co0liXe45PZ5/?ref=app
for(int i=0; i<amt.length; i++) { amount+=amt[i]; }