+ 1

plzz helllp

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);

22nd Nov 2017, 11:34 AM
jethro domin
jethro domin - avatar
3 ответов
+ 34
17
22nd Nov 2017, 12:18 PM
Igor Makarsky
Igor Makarsky - avatar
+ 9
You can run the code in Code Playground.
22nd Nov 2017, 12:45 PM
qwerty
qwerty - avatar
- 1
11 will be for sure
22nd Nov 2017, 8:48 PM
Farhan Khan
Farhan Khan - avatar