Tag Archives: Nested Loop

Times Table V2 – Solution

  1. Set up variables
  2. For 12 Tables
  3. For 12 sums
  4. Calculate the answer to the current sum
  5. Display the sum
  6. Next sum
  7. Next Table
  8. end program

Refine Step 4

4.1 multiply the user’s number by the current position in the times table and store in answer

Refine Step 5

5.1 Display the user’s number multiplied by position equals to the answer

This is an example of a nested loop, a nested loop is a loop within a loop.