Cambridge IGCSE Pseudocode Editor & Runner
Press Run to start.
Definition of pseudocode
Pseudocode is a structured, plain-language description of an algorithm that outlines program logic using readable English phrases instead of strict coding syntax. By incorporating key control keywords—such as IF, FOR, WHILE, and PROCEDURE—it bridges the gap between human thought and executable code. Free from compiler constraints, pseudocode is ideal for algorithm design, educational study, technical discussions, and exam preparation.
This editor uses the pseudocode conventions of the Cambridge International syllabuses IGCSE Computer Science (0478) and A-Level Computer Science (9618): DECLARE with explicit data type, the assignment arrow, OUTPUT and INPUT, IF…ELSE…ENDIF, CASE OF, FOR…NEXT, WHILE…ENDWHILE, REPEAT…UNTIL, 1-based array indexing, and PROCEDURE/FUNCTION with RETURNS statement. Run the code and walk through it line by line.
Cambridge IGCSE / A Level pseudocode:
| Construct | Syntax | Example |
| Declare a variable | DECLARE <identifier> : <DATATYPE> | DECLARE total : INTEGER |
| Assignment | <identifier> ← <value> | total ← 0 |
| Output | OUTPUT <expr1>, <expr2> | OUTPUT "Total: ", total |
| Input | INPUT <identifier> | INPUT name |
| Selection (If / Else) |
|
|
| Multi-way selection |
|
|
| Count-controlled loop |
|
|
| Pre-condition loop |
|
|
| Post-condition loop |
|
|
| Procedure (Subroutine) |
| CALL greet("Ada") |
| Function (Returns value) |
|
|
| Comment | // <comment text> | // swap the values |
Pseudocode FAQs
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 actual code.
Can you actually run pseudocode?
Pseudocode is not normally executable, but this editor runs a well-defined dialect (Cambridge IGCSE / A-Level pseudocode) entirely in your browser so you can see the output and step through it line by line.
Which pseudocode does this editor use?
It follows the Cambridge IGCSE and A-Level pseudocode conventions: DECLARE, the ← assignment arrow, OUTPUT, INPUT, IF/ELSE/ENDIF, FOR/NEXT, WHILE/ENDWHILE, REPEAT/UNTILarrays, and PROCEDURE/FUNCTION.
Is the pseudocode editor free?
Yes. The pseudocode editor and runner are completely free, run directly in your browser, and require no sign-up or installation.
