0478 · 0984 · 2210
IGCSE Pseudocode Compiler
An IGCSE pseudocode compiler runs the pseudocode in Cambridge IGCSE Computer Science (0478 and 0984) and the same statements in O Level (2210). This one does that in the browser. OUTPUT prints straight away. INPUT waits for you to type. A mistake is marked on the line, in plain language.
What it runs
DECLARE, CONSTANT, INTEGER, REAL, STRING, BOOLEAN and CHAR. IF, CASE, FOR, WHILE and REPEAT. One-dimensional and two-dimensional arrays. Procedures and functions. Text files with OPENFILE, READFILE and WRITEFILE. Assignment uses <-. Integer division is DIV, and the remainder is MOD.
Try a short program
The counter is set with <-, and the loop closes with NEXT and the same name. Open it in the compiler to change the name and run it again.
DECLARE Name : STRING
DECLARE Count : INTEGER
OUTPUT "Enter your name"
INPUT Name
FOR Count <- 1 TO 3
OUTPUT Name
NEXT CountIGCSE and A Level together
A Level 9618 adds records, pointers, BYREF, random-access files and classes. Those statements run in the same compiler. The Cambridge pseudocode page is the short name for the whole language. Write it in the pseudocode editor, then read the syntax guide or start the O Level tutorial.