+ 1
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;
tell me output.
4 ответов
+ 5
Why not you run the code on Code Playground?
+ 4
Technically, there is no output. But if you add the line:
Console.WriteLine(result)
then it would be 17.
Unless I'm mistaken, of course. 😉
+ 3
37 if I not wrong
+ 1
the answer is 17!
why is it 37???