A user inputs an integer value into the algorithm in Figure 1.
1 n ← USERINPUT
2 IF n < 8 OR NOT(n < 45) THEN
3 OUTPUT "Invalid"
4 ELSEIF n >= 8 AND n <= 20 THEN
5 OUTPUT "Level A"
6 ELSEIF n MOD 6 = 0 THEN
7 OUTPUT "Level B"
8 ELSE
9 OUTPUT "Level C"
10 ENDIF
Figure 1
State one integer value that the user could input that would result in an output of "Level C".
298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.