Docs

Pseudocode syntax reference

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

updated May 4, 2026

Core statements

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

Pick Cambridge IGCSE, Cambridge A Level, IB, OCR, or AQA in Settings so the compiler follows that board's notation.

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.