Professional Documents
Culture Documents
0478 Unit 7 and 8
0478 Unit 7 and 8
Q#2: An algorithm has been written in pseudocode to input some numbers. It only outputs any numbers that are greater than or equal to 100.
The number 999 is not output and stops the algorithm.
INPUT Number
DO
THEN
OUTPUT Number
ENDIF
ENDWHILE
OUTPUT Number
• INPUT Number is missing from inside the loop, insert INPUT Number after the ENDIF statement. •
INPUT Number
DO
THEN
OUTPUT Number
ENDIF
ENDWHILE
OUTPUT Number
• INPUT Number is missing from inside the loop, insert INPUT Number after the ENDIF statement. •