How it works
A program waits in memory until you press run. Then the processor reads one instruction, does it, and moves to the next.
A computer never guesses. It does only what is written, in the order written.
A missing line makes a bug, because the computer skips nothing and adds nothing.
A real processor does billions of tiny steps every second, but it still takes them one at a time, in order.