Converting a flowchart to pseudocode
Follow the flow lines and turn each symbol into a statement. A diamond becomes IF, a back arrow shows a loop, and you add ENDIF, NEXT, ENDWHILE or UNTIL. Write keywords in capitals.
Understanding Converting a flowchart to pseudocode in IGCSE Computer Science Paper 2
What it does: When the back arrow follows a diamond placed after the process, the body runs first. This is REPEAT ... UNTIL, and UNTIL ends the loop. IF, THEN, OUTPUT and ENDIF are keywords, so they are written in capitals. The closing ENDIF is added to finish the decision. A diamond is a decision, so it becomes an IF statement. The Yes and No branches become the THEN and ELSE parts. Parallelogram symbols are input or output. The word inside the symbol tells you which keyword to use. Here it is OUTPUT. A process box that stores a value becomes an assignment, written with the arrow <-. The = sign is for comparing values, not for assigning them.
Common mistakes: The diamond became an IF, so the decision must be closed with ENDIF. ENDWHILE belongs to a WHILE loop. The line should be ENDIF. Keywords must be written in capitals when converting a flowchart to pseudocode. The line should be OUTPUT Count.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 188–213) and word search (Modules 188–231).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
Flowchart to pseudocodeFill in the Blanks
Spot the Error
Student with a class code? Join your class →