Methods2025 Exam 2 Section A · Q7CAS active1 mark
Output of a while-loop algorithm
Consider the algorithm below.
n ← 17
k ← 5
while n > k
n ← n − k
print n
end while
In order, the values printed by the algorithm are
Hints, answer checking and worked solutions come with a Season Pass.