0

What will be the output of this code and How?

int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else { result += i; } } System.out.println(result);

16th Oct 2018, 7:01 AM
Garima Chauhan
1 Answer