Menu
Coddy logo textTech

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

ConstructSyntaxExample
AssignmentSET x TO valueSET total TO 0
OutputSEND expr TO DISPLAYSEND "Hi " & name TO DISPLAY
InputRECEIVE x FROM (TYPE) KEYBOARDRECEIVE name FROM (STRING) KEYBOARD
Selection (if / else)IF … THEN … ELSE … END IFIF n > 5 THEN … END IF
Count-controlled loopFOR i FROM a TO b DO … END FORFOR i FROM 1 TO 10 DO … END FOR
Pre-condition loopWHILE cond DO … END WHILEWHILE n > 0 DO … END WHILE
Post-condition loopREPEAT … UNTIL condREPEAT … UNTIL n = 0
Procedure / subroutinePROCEDURE name(params) … END PROCEDUREgreet("Ada")
Comment// comment// swap the values

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.

Coddy programming languages illustration

Go from pseudocode to real code with Coddy

GET STARTED