Since the machine only stops once X crosses 100, the final X value is simply whatever X becomes on the very last step that was run.
So the machine's last computed value of X, and hence its final value, is 360.
The correct answer is option D.
Find the missing term in the given sequence:
\[ 1,\ 5,\ 5,\ 10,\ 4,\ 15,\ 13,\ \_ \_ \]
| 7 | 13 | 6 |
| 4 | 22 | 18 |
| 17 | ? | 7 |