Video solution will be uploaded soon.
A hand-held gaming device takes X and Y as two input values. These values get updated as X=XY/2 and Y=Y+1 at each iteration and the game stops when X is greater than or equal to N. For X=2, Y=4 and N=3000, what would be the final value of X when the game stops? | Watch the step-by-step video solution for this NIMCET PYQ.