Docs

Pseudocode syntax reference

Reference the core pseudocode syntax supported by the browser compiler, including assignment, conditions, loops, arrays, and output.

Updated 2026-05-04

Core statements

Use DECLARE for variables, <- for assignment, INPUT for user input, and OUTPUT for displayed values.

Keywords are intentionally close to Cambridge-style pseudocode conventions so programs stay readable for exam practice.

DECLARE Total : INTEGER
Total <- 0
OUTPUT Total

Blocks

Selection and loop blocks use clear closing keywords such as ENDIF, NEXT, ENDWHILE, and UNTIL. Matching block endings makes programs easier to trace and debug.