CAPE Computer Science Unit 1 · 2009 · Paper 2 · Question 4(b)
Trace through the execution of the given algorithm and draw the exact output produced, using '-' to represent spaces printed by printSpaces(n).
The mark scheme is shown once you've answered.
Practise this question