RE: A question for fun to you guys

You are viewing a single comment's thread from:

A question for fun to you guys

in code •  8 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!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Wrong answer :)