Algorithm 3

Carry out the following instructions.

  1. Draw a box, label the box A, write the number 25 in box A
  2. Draw a line that values may be written on, label the line Output
  3. If the number in box A is greater than or equal to 0 then do the next instruction, otherwise do instruction 7
  4. Write the number in box A on the line labeled Output
  5. Replace the number in box A with the number that is five less than the number currently in box A
  6. Go back and do instruction 3 again
  7. You are done

Describe the sequence of numbers on the Output line.