The Variables panel shows every variable while the algorithm runs; the trace table lists all steps with the values after each of them, as on paper.

Algorithm Digits

Student
  1. Run the algorithm with 4072 and open the Trace tab beside the diagram.
  2. Before you run it, fill in a trace table on paper and compare it with the one in the panel.
  3. A click on a row of the table goes to that step.
Teacher
  1. Ask students to predict a row of the trace table, then check it together with Step.
  2. Use the Do … While loop of this example to show that its body runs at least once (try n = 0).