The pseudo-code algorithm below represents a subroutine that processes an integer input.
SUBROUTINE process(n)
p ← n
q ← 0
REPEAT
p ← p - 3
q ← q + 1
UNTIL p < 2
OUTPUT q
ENDSUBROUTINE
State the value that will be output for the subroutine call process(10).
208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.