- 5
What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else {
need help
6 ответов
+ 4
Not only did you write the code in the title, you didn't even write the full code... and posted the same thing twice...
How do you expect anyone to give an actual answer??
+ 2
He could print the variable "Results" just after the if statement
+ 2
Follow these 8 steps, it will help you get your answer.
https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community/
+ 1
Please tag the code in the discription or in answers
+ 1
there will be no output beacuse you didn't print anything.
+ 1
I would recommend throwing it in Playgrounds and press Run