Computer Science (AS & A Level) · Oct / Nov 2023 · Paper 22 · Question 2
9618
As printed in the paper
The question as text
An algorithm will: 1. input a sequence of integer values, one at a time 2. ignore all values until the value 27 is input, then sum the remaining values in the sequence 3. stop summing values when the value 0 is input and then output the sum of the values.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
2(a)[5]
2(b)[2]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

