The algorithm is as follows:
Input m
if m < 0 then {m = - m}
repeat_until { (m <= 5) } { m = m-1 }
Now, here is what I would like to know:
- What is the value of (m) to skip the loop?
- What is the value of (m) to enter the loop once?
I've tried to implement the algorithm in Scratch, and analyzed what could be the answer to the questions. However, I would like to know multiple opinions on what could be the answer to those 2 questions.