Edexcel Pseudocode Editor & Runner
Write Pearson Edexcel pseudocode, run it right in your browser, and step through every line while you watch the variables change.
What is pseudocode?
Pseudocode is a plain-language way of writing out the logic of a program before you write real code. It uses structured keywords — IF, FOR, WHILE, PROCEDURE — so the steps are unambiguous, but it drops the fiddly syntax of a specific programming language. That makes it perfect for planning algorithms, studying for exams, and explaining ideas.
This editor follows the Pearson Edexcel GCSE pseudocode conventions: SET…TO assignment, SEND…TO DISPLAY output, RECEIVE…FROM KEYBOARD input, IF…THEN…ELSE…END IF, FOR…FROM…TO…DO…END FOR, WHILE…DO…END WHILE and REPEAT…UNTIL. Press Run to see the output, then step through one line at a time.
Edexcel pseudocode syntax at a glance
| Construct | Syntax | Example |
|---|---|---|
| Assignment | SET x TO value | SET total TO 0 |
| Output | SEND expr TO DISPLAY | SEND "Hi " & name TO DISPLAY |
| Input | RECEIVE x FROM (TYPE) KEYBOARD | RECEIVE name FROM (STRING) KEYBOARD |
| Selection (if / else) | IF … THEN … ELSE … END IF | IF n > 5 THEN … END IF |
| Count-controlled loop | FOR i FROM a TO b DO … END FOR | FOR i FROM 1 TO 10 DO … END FOR |
| Pre-condition loop | WHILE cond DO … END WHILE | WHILE n > 0 DO … END WHILE |
| Post-condition loop | REPEAT … UNTIL cond | REPEAT … UNTIL n = 0 |
| Procedure / subroutine | PROCEDURE name(params) … END PROCEDURE | greet("Ada") |
| Comment | // comment | // swap the values |
See these algorithms animated
Pseudocode FAQ
What is pseudocode?
Pseudocode is a plain-language way of describing the steps of an algorithm, using structured keywords like IF, FOR and WHILE without the strict syntax of a real programming language. It lets you plan and communicate logic before writing code.
What is Edexcel pseudocode?
Edexcel pseudocode is the code style used in Pearson Edexcel GCSE Computer Science exam papers. It is more verbose than other boards: SET total TO 0, SEND "Hi" TO DISPLAY, RECEIVE name FROM (STRING) KEYBOARD, with two-word block ends like END IF and END WHILE.
Is the pseudocode editor free?
Yes. The pseudocode editor and runner are completely free, run in your browser, and need no sign-up or installation.