0
What is the output of this code? Explain Why and How?
int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else { result += i; } } System.out.println(result);
1 Answer
+ 8
Hi!check this linkđ
https://www.sololearn.com/discuss/1211861/?ref=app