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