🧪

Pseudocode playground

Write any pseudocode, run it, step through it, inspect every variable, see the trace table and test it — right in your browser.

📋 Quick language reference

BEGIN … END program start & end
TAKE A, B input from the user
SET X = 10 store / change a value
DISPLAY X, "text" show output

IF … THEN / ELSE IF / ELSE / END IF
FOR I = 1 TO 10 [STEP 2] … END FOR
FOR EACH X IN LIST … END FOR
WHILE … END WHILE · REPEAT 5 TIMES … END REPEAT

FUNCTION F(A, B) … RETURN … END FUNCTION
[1, 2, 3] lists (index from 0) · {"k": 1} maps
ADD X TO LIST · REMOVE X FROM LIST
MOD DIV AND OR NOT · LENGTH() MAX() MIN() POP()

Open the full cheat sheet →