// Pseudocode IDE

CAIE Pseudocode Editor

Write, run and debug Cambridge-style pseudocode right here in your browser — no install needed. Pick a sample below to get started.

main.psc
output
Output will appear here. Click ▶ Run.

Supported syntax

x <- 5   // assignment (also accepts ←) OUTPUT "Hello, ", name INPUT age IF x > 0 THEN ... ELSE ... ENDIF FOR i <- 1 TO 10 STEP 2 ... NEXT i WHILE x < 5 DO ... ENDWHILE REPEAT ... UNTIL x = 0 arr[i] <- value  // 1-D arrays Operators: + - * / MOD DIV Compare: = <> < > <= >= Logic: AND OR NOT  TRUE / FALSE Functions: LENGTH UCASE LCASE MID LEFT RIGHT INT ROUND