tell me why shoud it stop when x becomes 3? success is initally assigned 0, so after x becomes 3, for the first time, success is incremented by unit value! and same the next time the loop runs!
but when success become 2 (after two successive increments), the expression with the while statement returns false..so the loop stops then only!
am i right?