It helps to lay this out as a small table, tracking X and Y together after each update.
At the end of step 4, X = 360, which is the first time X reaches or crosses 100, so the machine halts right there.
So the correct answer is option C, 4 steps.
Find the missing term in the given sequence:
\[ 1,\ 5,\ 5,\ 10,\ 4,\ 15,\ 13,\ \_ \_ \]
| 7 | 13 | 6 |
| 4 | 22 | 18 |
| 17 | ? | 7 |