Quote Originally Posted by LarryChen View Post
Actually, I expected the output to be just "zero". Since i is 4, so it doesn't satisfy case 1.
And if you set i to equal 1, and your case 1 didn't include a break statement, what do you think the output would be?