Check the stopping boundary

A test procedure starts with an integer counter. Before each repetition, it checks whether the counter is positive. If it is positive, the procedure subtracts 2 and checks again. Otherwise, it stops and reports the counter. Complete the table with the exact whole-number repetition count and the final counter value for each starting value.

Starting counterRepetitionsFinal counter
4
7
10

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More What Is an Algorithm? Questions: