Skip to main content

Because loops have not yet been introduced, the following is a perfectly acceptable solution:

More advanced students might use loops to simplify the solution.