0
What is the output of this code?
int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else { result += i; } } System.out.println(result);
5 Answers
+ 2
17
+ 1
is this a challenge or you have a problem with the code?
+ 1
Run this at code playground & verify the result.
0
37
0
sorry my mistake