Lesson 3.9 · Answer it
Flowchart power of two
4 marksYou mark it yourself against the marking points
The flowchart below describes an algorithm. It reads a whole number n that is 1 or more.
(a) State the output when the input is 20. [1]
(b) State the output when the input is 1. [1]
(c) Identify the box that is the loop's update: the box that changes what the diamond asks about. [1]
(d) Describe what the algorithm outputs, for any input of 1 or more. [1]
[4]