Live: will automatically execute upon every character typed (warning:
could result in issues if you have intensive or partially-completed code
that results in an infinite loop)
Exited code editor: will automatically execute code when the code editor
loses
focus - i.e. when you click outside of the code editor
Run on click: code will only be executed when you click the triangular
run/play
button
File Manager
Search & browse files easily
Pseudocode
Write and run pseudocode
Java
See a Java equivalent to your pseudocode program
Note: the site doesn't allow executing Java. An IDE like IntelliJ will provide an easy installation of the JDK and is recommended for running Java locally
Python
See a Python equivalent to your pseudocode program
Note: the site doesn't allow executing Python. An IDE like PyCharm will provide an easy installation of the Python interpreter and is recommended for running Python locally
Visual Basic
See a Visual Basic (VB) equivalent to your pseudocode program
Note: the site doesn't allow executing Visual Basic. An IDE like Visual Studio will provide an easy installation of the Visual Studio compiler and is recommended for running Visual Basic locally
New Program
Choose from a number of pre-made programs or create your own
Modifying a pre-made program will automatically create a new program, ensuring the
original & modified version are available
Create Trace Table
Automatically create trace tables for your code
Can use the BREAKPOINT keyword to add breakpoints at specific parts of your program
Use TRACE_NEXT_ROW to force new row to be created in trace table
Autoformat Code
Toggle original/formatted code
Pretty-printing/auto-formatting code will insert new lines, indentation and apply consistent styling rules. If enabled, pretty-printing will also occur each time you run your program
You can even try writing your entire program on one line...and it should still run and be formatted correctly :)
Note: code may be re-ordered (e.g. all declarations moved to the top) due to the way the site works
Tested and works for all demo programs - please contact me if this breaks any of your working code!
The site aims to enforce the statically-typed nature of pseudocode - i.e. assigning a STRING to
an
INTEGER variable should be forbidden. Some combinations are allowed, however - such as assigning
a
CHAR to a STRING or an INTEGER to a REAL. Other additional checks to ensure valid pseudocode are
also in place
The site has been well-tested and there aren't any bugs we are aware of, however, if you believe
the
site is incorrectly giving you an error & preventing your code from running, you can disable the
error-checking
Note that it is not possible to disable fatal error messages such as syntax errors, runtime
errors
etc
Subroutine Signature Hints
If enabled, the following information will be shown:
Keyword/Identifier/Module Name Suggestions
Subroutine parameters & types
Return types
Subroutine descriptions
Examples
Switch Program Shortcuts
Choose whether CTRL + SHIFT + LEFT/RIGHT should navigate to the previous program - can be
disabled to prevent accidental triggering
Toggle Keyboard Shortcuts
Enable or disable this website's additional keyboard shortcuts (switch program, change font size,
code execution etc) - note: standard editor & browser shortcuts will still apply
Use Assignment Arrow
Will cause "<-" to be replaced with the Unicode "β" symbol as the user is typing - can also use CTRL + SHIFT + < to insert this symbol
Allow Array Multi-Assignment
If enabled, you won't get warnings for assigning all values to an array in one statement - e.g. myArray <-- [1, 2, 3]
Allow LENGTH() for Arrays
Turning this on will disable the warning message if using the LENGTH function to get the number of elements in an array
Require Variable Initialisation
If enabled, you will get warnings if trying to access uninitialised variables
Code Snippets
These are pre-written code templates - for example, if you type in "DECLARE" in the code editor, you will see options to declare single variables, 1 & 2D arrays - you can disable this option
Show Toolbar Program Browser
If enabled, will show the program browser in the toolbar even if the sidebar file browser is open
Show Welcome Message
Toggle the welcome message/popup in the bottom right corner from showing
Wait for Tips
Will show the loading screen until at least the tip (hint) has been displayed, even if the site is fully loaded. Disabling this can hence make the editor screen appear faster, if the page is ready
Max Execution Time
To prevent infinite loops resulting in the page becoming unresponsive, code will automatically
terminate if this value (in seconds) is exceeded
If you have a legitimate long-running program, you can obviously set this to a high value -
alternatively, setting to -1 will disable this check
{"0":"Algorithms","1":"Selection","2":"Iteration","3":"Arrays","4":"Records","5":"ENUMs","6":"Custom Modules","7":"Files","8":"Object-Oriented Programming","9":"Abstract Data Types","10":"Sets","11":"Pointers","12":"Recursion","13":"Exam Questions","14":"Games","15":"Mathematics","16":"Art","17":"Utilities","18":"Other"}
Welcome to Pseudocode Pro
This site was developed to solve the problems of students either being completely stuck with pseudocode,
or attempting a solution, but having no way of actually validating if it would work (other than a manual
trace table). This site supports the entire Cambridge IGCSE (0478), O-Level (2210) and 9618 A-Level pseudocode
specifications from the guide/syllabus, with extension modules supporting sound, canvas, events, custom html etc
Below are lists of both the currently support pseudocode and general website features:
Additional coding challenges (I will create 2 per day, will have 500 in total eventually)
Starter code & implementation of pre-defined modules for IGCSE/O-Level/A-Level past papers, so
students can write and test their solutions directly, as they would in the exam
Those last 2 features are currently in progress, so an extra 3 months free
will be given to anyone who buys a license now to acknowledge this
For any issues, feature requests, comments etc, you can contact me
Token List
Work in progress: some buttons currently don't work...just select "All"
Token
Description
Example
Parameters
Thanks for using the site - I hope you enjoy it and if you do, it would mean a lot if you could share it with your friends too :)
Trace Table β₯
New Row
Module Call
Will start a new line when entering a new module - e.g.
PROCEDURE a()
//new line in trace table
...
ENDPROCEDURE
After Parameters
Will start a new line after parameters have had their values traced
PROCEDURE a(b : INTEGER)
//b's value is traced
//new line in trace table
...
ENDPROCEDURE
Loop Iteration
Will start a new line upon each iteration of a loop
REPEAT
//new line in trace table
...
UNTIL index = 10
Pre Loop
Will start a new line before a loop has started
//new line in trace table
REPEAT
...
UNTIL index = 10
Post Loop
Will start a new line after a loop has ended
REPEAT
...
UNTIL index = 10
//new line in trace table
If Statement
Will start a new line inside an IF or ELSE condition
IF a > b THEN
//new line in trace table
ELSE index = 10
//new line in trace table
ENDIF
Left to Right
Many suggest that trace tables should be read left-to-right, top to bottom. Hence, if a value on the current row is to be updated, but a value in a column further right on the same row has already been updated, a new row should be started
If we have the column order a, b and the following assignments...
b <-- 1
a <-- 2
b <-- 3
Then the following trace table should be created (note how the assignment to 'a' has to start a new line, since we have already assigned to a variable in a column to the right ('b')
a
b
1
2
3
Extra Options
Show Duplicates
Usually, the same value being assigned to a variable that it already contains won't be shown on a trace table - by default, it's shown by cells with a black/grey striped background. Enable this option if you'd like the value to be shown instead
a <-- 111
a <-- 111
Show Line Numbers
Show the line numbers in the cell where the value was updated - rather than having to hover your mouse over that cell
Copy Rich Text TableDownload CSVRun Again
Trace All
Trace all variables, even if its order not explicitly specified in the box to the left
Hover or click to show help
Trace table only generated when this dialog is open
Specify variables & order to trace above - default is all, in order they are declared
Hovering your mouse over a cell will display the line number this value was assigned
Use BREAKPOINT keyword to pause execution at specific point
Use TRACE_NEXT_ROW to force creation of a new row at specific point
Grey/black diagonally-shaded cells indicate the value assigned is unchanged
Work in progress. Currently buggy for records, classes, sets etc - will be fixed soon :)
Breakpoint Active - Click/ENTER to Resume
Re-run program for changes to take effect
Program Tokens β₯
Note: tokens were generated via a series of regex rules
Type
Value
Line
Char
Live Chat β₯
Send
Abstract Syntax Tree β₯
Flowchart β₯
Loading... :)
{"c":"\/\/ * Code Author: Cliven\n\/\/ * Date: 2026\/04\/23\n\/\/ * Description: \n\/\/ * Categories: \n\n\/\/ * Code Author: Cliven\r\n\/\/ * Date: 2026\/04\/23\r\n\/\/ * Description: \r\n\/\/ * Categories: \r\n\r\n\r\nDECLARE c, d, m: CHAR\r\nDECLARE v, h : BOOLEAN\r\nDECLARE value : REAL\r\nDECLARE y : INTEGER\r\nDECLARE decision : CHAR\r\nDECLARE cost, ins, payment, interest, cost2 : REAL\r\nDECLARE buy : CHAR\r\nDECLARE name, choice, letter : STRING\r\nDECLARE curyear : INTEGER\r\nDECLARE pricesure, brandsure, surefreebies, freebies1, freebies2 : CHAR\r\nDECLARE stop, s: BOOLEAN\r\n\r\nREPEAT\r\n OUTPUT \"Buy a car (B)\"\r\n OUTPUT \"Predict a car's yearly value (P)\"\r\n OUTPUT \"\"\r\n OUTPUT \"Choose one of the options. (B\/P)\"\r\n INPUT c\r\n\r\n h \u2190 FALSE\r\n m \u2190 \"h\"\r\n\r\n cost \u2190 0\r\n\r\n IF c = \"b\" OR c = \"B\" THEN\r\n OUTPUT \"Buying a car selected\"\r\n v \u2190 TRUE\r\n \r\n OUTPUT \"Welcome to car shop. Please choose one of the cars models to buy.\"\r\n OUTPUT \"(A) Acura. Price: Rp 240 million\"\r\n OUTPUT \"(G) Geely. Price: Rp 290 million\"\r\n OUTPUT \"(H) Hyundai. Price: Rp 275 million\"\r\n OUTPUT \"(J) Jeep. Price: Rp 390 million\"\r\n OUTPUT \"(M) Mazda. Price: Rp 320 million\"\r\n OUTPUT \"(N) Nissan. Price: Rp 410 million\"\r\n\r\n brandsure \u2190 \"N\"\r\n OUTPUT \"\"\r\n OUTPUT \"Please note the program is case sensitive, so type letters in capital\"\r\n REPEAT\r\n s \u2190 TRUE\r\n OUTPUT \"Enter the letter of the car brand you want to buy.\"\r\n INPUT letter\r\n CASE OF letter\r\n \"A\" : OUTPUT \"You are going to buy Acura.\"\r\n cost \u2190 240000000\r\n \"G\" : OUTPUT \"You are going to buy Geely\"\r\n cost \u2190 290000000\r\n \"H\" : OUTPUT \"You are going to buy Hynudai\"\r\n cost \u2190 275000000\r\n \"J\" : OUTPUT \"You are going to buy Jeep\"\r\n cost \u2190 390000000\r\n \"M\" : OUTPUT \"You are going to buy Mazda\"\r\n cost \u2190 320000000\r\n \"N\" : OUTPUT \"You are going to buy Nissan\"\r\n cost \u2190 410000000\r\n\r\n\r\n OTHERWISE : OUTPUT \"Please re-enter.\"\r\n s \u2190 FALSE\r\n ENDCASE\r\n IF s = TRUE THEN\r\n OUTPUT \"Are you sure of your choice? [Y\/N]\"\r\n INPUT brandsure\r\n ENDIF\r\n UNTIL brandsure = \"Y\"\r\n\r\n payment \u2190 cost\r\n OUTPUT \"\"\r\n OUTPUT \"5% discount will be given to cars priced over 350 million.\"\r\n IF payment > 350000000 THEN\r\n payment \u2190 payment * 95 \/ 100\r\n\r\n ENDIF\r\n cost2 \u2190 payment\r\n\r\nREPEAT\r\npayment \u2190 cost2\r\n OUTPUT \"\"\r\n OUTPUT \"paying in Cash or Installments?\"\r\n OUTPUT \"C: cash\"\r\n OUTPUT \"I: Installments (yearly + interest)\"\r\n OUTPUT \"Please select one of the payment methods [C\/I] (type in capital letter)\"\r\n\r\n INPUT choice\r\n\r\n CASE OF choice\r\n \"C\": choice \u2190 \"C\"\r\n OUTPUT \"If you pay in cash, you will receive a 10% discount.\"\r\n payment \u2190 payment * 9 \/10\r\n OUTPUT \"So, you will pay \", ROUND(payment, 0), \" in rupiah. Will you buy it? [y\/n]\"\r\n INPUT buy\r\n\r\n IF buy = \"n\" OR buy = \"N\" THEN\r\n choice \u2190 \"j\"\r\n OUTPUT \"\"\r\n OUTPUT \"Returning to the previous menu.\"\r\n ENDIF\r\n\r\n \"I\": choice \u2190 \"I\"\r\n OUTPUT \"Choose installment modes.\"\r\n \r\n REPEAT\r\n OUTPUT \"Choose from 12, 24, 36 or 60 months.\"\r\n INPUT ins\r\n UNTIL ins = 12 OR ins = 24 OR ins = 36 OR ins = 60\r\n\r\n CASE OF ins\r\n 12 : payment \u2190 cost2\r\n 24 : payment \u2190 cost2 \/ 2\r\n 36 : payment \u2190 cost2 \/ 3\r\n 48 : payment \u2190 cost2 \/ 4\r\n OTHERWISE : OUTPUT \"Wrong amount entered. Please try again\"\r\n ENDCASE\r\n\r\n OUTPUT \"You will pay a yearly amount of \", ROUND(payment, 0), \" Rp\"\r\n OUTPUT \"You will pay a fixed interest rate of 7% each year.\"\r\n interest \u2190 cost * 0.07\r\n OUTPUT \"The interest is \", interest, \" Rp\"\r\n\r\n OUTPUT \"Will you purchase it? [Y\/N]\"\r\n INPUT buy\r\n\r\n IF buy = \"n\" OR buy = \"N\" THEN\r\n choice \u2190 \"j\"\r\n OUTPUT \"\"\r\n OUTPUT \"Returning to the previous menu.\"\r\n ENDIF\r\n\r\n\r\n OTHERWISE : OUTPUT \"Please input again\" \r\n ENDCASE\r\n\r\nUNTIL choice = \"I\" OR choice = \"C\"\r\n\r\nsurefreebies \u2190 \"N\"\r\nWHILE surefreebies = \"N\" DO\r\n\r\n OUTPUT \">Extended warranties (W)\"\r\n OUTPUT \">Fully filled fuel (F)\"\r\n OUTPUT \">High quality mats (M)\"\r\n OUTPUT \"Here are some freebies. You may select 2 by inputting the letter.\"\r\n\r\n REPEAT\r\n INPUT freebies1\r\n UNTIL freebies1 = \"W\" OR freebies1 = \"F\" OR freebies1 = \"M\"\r\n\r\n CASE OF freebies1\r\n \"W\": OUTPUT \"Extended warranties selected. Choose a second freebie\" \r\n stop \u2190 FALSE\r\n \"F\": OUTPUT \"Fuell fuel selected. Choose a second freebie\" \r\n stop \u2190 FALSE\r\n \"M\": OUTPUT \"high quality mats selected. Choose a second freebie\" \r\n stop \u2190 FALSE\r\n OTHERWISE: OUTPUT \"Please type a correct letter\"\r\n stop \u2190 TRUE\r\n ENDCASE\r\n\r\n REPEAT\r\n OUTPUT \"note: You cannot choose the same freebie 2 times\"\r\n INPUT freebies2\r\n UNTIL freebies2 <> freebies1\r\n\r\n CASE OF freebies2\r\n \"W\": OUTPUT \"Extended warranties selected. \"\r\n stop \u2190 FALSE\r\n \"F\": OUTPUT \"Fuell fuel selected.\"\r\n stop \u2190 FALSE\r\n \"M\": OUTPUT \"high quality mats selected.\"\r\n stop \u2190 FALSE \r\n OTHERWISE: OUTPUT \"Please re-type the correct freebies\"\r\n stop \u2190 TRUE\r\n ENDCASE\r\n\r\n IF stop = FALSE THEN\r\n OUTPUT \"Are you sure you want the freebies you entered? (Y for yes)\"\r\n INPUT surefreebies\r\n ENDIF\r\n\r\n\r\n OUTPUT \"Thank you for your purchase.\"\r\n h \u2190 TRUE\r\nENDWHILE\r\n\r\n\r\n\r\nELSE IF c = \"p\" OR c = \"P\" THEN\r\n\r\n OUTPUT \"Car value prediction selected\"\r\n v \u2190 TRUE\r\n OUTPUT \"Car Value prediction system. You may use it for your own car as well.\"\r\n \r\n REPEAT\r\n REPEAT\r\n IF cost > 0 THEN\r\n OUTPUT \"Would you like to measure using the car value you have used? [Y\/N]\"\r\n INPUT m\r\n ENDIF\r\n\r\n IF m = \"y\" OR m = \"Y\" THEN value \u2190 cost\r\n ELSE\r\n OUTPUT \"\"\r\n OUTPUT \"Input the initial price of the car in rupiah. \"\r\n INPUT value\r\n ENDIF\r\n\r\n\r\n IF value < 150000000 OR value > 950000000 THEN\r\n OUTPUT \"Please input a valid value (Rp 150000000 to 950000000)\"\r\n\r\n ENDIF\r\n UNTIL value >= 150000000 AND value <= 950000000\r\n \r\n OUTPUT \"The car's value will decrease by 40% in year 1 and by 20% for each subsequent year.\"\r\n\r\n y \u2190 1\r\n REPEAT\r\n IF y = 1 THEN\r\n value \u2190 value * 60 \/ 100\r\n ELSE value \u2190 value * 80\/ 100\r\n ENDIF\r\n\r\n OUTPUT \"Current Year Value: Rp \", value\r\n OUTPUT \"Year : \", y\r\n y \u2190 y + 1\r\n\r\n UNTIL y = 10 OR value <= 1000\r\n\r\n OUTPUT \"Want to input another car value? [Y\/N]\"\r\n INPUT decision\r\n h \u2190 FALSE\r\n UNTIL decision = \"N\" OR decision = \"n\"\r\n\r\n\r\nELSE OUTPUT \"Wrong choice, type again\"\r\n v \u2190 FALSE\r\n ENDIF\r\n ENDIF\r\n\r\n REPEAT\r\n OUTPUT \"Do you want to enter another option? (Y\/N)\"\r\n INPUT d\r\n IF d = \"N\" OR d = \"n\" THEN v \u2190 TRUE\r\n ELSE IF d = \"Y\" OR d = \"y\" THEN OUTPUT \"Returning to main menu\"\r\n v \u2190 FALSE\r\n ELSE OUTPUT \"Wrong letter inputted.\"\r\n ENDIF\r\n ENDIF\r\n UNTIL d = \"N\" OR d = \"n\" OR d = \"y\" OR d = \"Y\"\r\n\r\n\r\nUNTIL v = TRUE","t":"car sales full"}