You are viewing a single comment's thread from:

RE: A question for fun to you guys

in #code8 years ago

I believe it's b for the first one because the check will happen when i = 0, and then the i will increment to 1, so the loop will return false from the first run.

For the second one its d because the i will always be => 1 and anything >0 in c is considered true.
Very good problem, I hope I got it right!

Sort:  

Wrong answer :)