+ 1
Java, why is the answer 17 on the 2nd question of the quiz in module 3?
It doesn't make sense at all, i mean, the way i understood it was that as 'i' increments, it will soon be larger than 3 and then it won't be equal to 10 anymore because of the 'else' statement but will be equal to 5, how is it then that 17 is the answer instead? Here's the question: https://www.sololearn.com/Play/Java
2 Respostas
+ 6
You forgot to post the question so we can see it. Unless you were expecting us to go to Module 3 and look, in which case, pass.
If you post the actual question, I'll happily help you out with it bro.
+ 2
First you add 0+1+2=3
Next with 3 you must to add 10 so = 13
Finally with 4 you add it so 13+4 = 17
Finish For because i<5