+ 1

I've got this question on challange and I don't understand how 13 comes in output. Guyzz plz explain if you understand

int [] a= {4,2,3 }; for (int i= 0 ; i <3 ; i++ ) { a[0] += a[i] ; } System. out.print(a[0]);

26th Apr 2017, 4:48 AM
Nadir wadsariya
Nadir wadsariya - avatar
2 Answers
+ 3
a [0] = a [0] + a [0] + a [1] + a [2]
26th Apr 2017, 5:10 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Ok ri8, thanks Calvin.
26th Apr 2017, 5:16 AM
Nadir wadsariya
Nadir wadsariya - avatar