Boss: one mark, or Not found
Level 13: Slot 1. Searching a list is a Paper 2 staple. "Not found" is printed once, after the loop, never inside it.
The names and marks are already stored. Read a name. Output that student's mark, or Not found if the name is not there.
Example: input Ada → 80. Input Zed → Not found.
Set Found <- FALSE before the loop. After NEXT, output Not found only when Found is still FALSE.
- Previous: Count the passes
- Next: IF … THEN … ENDIF
- IGCSE & O Level Paper 2 Path