Question:

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=3008, what would be the final value of X when the game stops?

Show Hint

Don't fear small iterative calculations; usually, the pattern stabilizes after 3-4 steps.
Updated On: Jun 12, 2026
  • 5450
  • 9450
  • 12860
  • 13450
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understanding the Concept:
Sequential iteration processing.

Step 2: Detailed Explanation:
1. Iteration 1: \( X = (2 \times 4)/2 = 4 \), \( Y = 5 \).
2. Iteration 2: \( X = (4 \times 5)/2 = 10 \), \( Y = 6 \).
3. Iteration 3: \( X = (10 \times 6)/2 = 30 \), \( Y = 7 \).
4. Continue until \( X \ge 3008 \). The iterations lead to 9450.

Step 3: Final Answer:
The final value is 9450.
Was this answer helpful?
0
0

Top NIMCET Logical Reasoning Questions

View More Questions

Top NIMCET Logical Reasoning Questions

View More Questions