Question:

Instructions: A numerical machine accepts two values X and Y. At every step, it updates the values as X = X times Y, and Y = Y + 1. The machine stops as soon as X becomes greater than or equal to N.

Using the same values as the previous question (X = 3, Y = 2, N = 100), what is the final value of X?

Show Hint

The final X is the value at the exact step where X first reaches or crosses 100.
Updated On: Jul 15, 2026
  • 6
  • 20
  • 72
  • 360
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Reuse the earlier simulation.
From the previous question, the machine's values evolve as: after step 1, X = 6; after step 2, X = 18; after step 3, X = 72; after step 4, X = 360, at which point X ≥ 100 and the machine stops.

Step 2: Final Answer.
The final value of X, at the moment the machine stops, is 360, so option D is correct.
Was this answer helpful?
0
0