Step 1:Create columns — one for each variable that changes, plus an OUTPUT column
Step 2:Work through the algorithm line by line — only update a cell when that variable changes
Step 3:For loops — add a new row for each iteration, updating the relevant values
Step 4:Only write to the OUTPUT column when an OUTPUT statement is executed