How can I code this in another way? Or another method? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I code this in another way? Or another method?

for(int i=0; i<amt.length; i++) { amount+=amt[i]; }

11th Aug 2019, 8:44 PM
czarina smsn
czarina smsn - avatar
1 Answer
0
Sum of elements in array => look at the code https://code.sololearn.com/co0liXe45PZ5/?ref=app
11th Aug 2019, 8:55 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar