Loading

Search Code

Search code contents

Close File Browser

Execution Mode

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!

Show Tokens

Display the program broken down into tokens after the tokenisation ("lexical analysis") stage

Show Abstract Syntax Tree

Display a visual representation of the parse result of the program

Load

Load a previously-saved pseudocode file (.pseudo default extension)

Download

Download a .pseudo file for future use

Note: programs will be saved periodically (every 10 seconds) to your browser's storage if changes are made - this means you can access your programs across multiple tabs

Upload

Save your program for public-viewing by anyone

Sharing

Share a direct link containing your code - your code will be contained in the URL and NOT stored on the server

Alternatively, you can select the upload option to upload your code publicly to the server

Quiet Editor

Remove bloat like the navigation bar & footer to focus only on the code editor

Note: can be toggled with CTRL + Q (quiet mode)

Fullscreen Quiet Mode

Toggle between regular and fullscreen mode

Note: pressing FN/F11/ESC keys isn't recommended, since they can't be detected by the site, hence the additional 'quite mode' settings can't be applied - the removing of the nav bar & footer. To enter this fullscreen mode, either use this button or the keyboard shortcut CTRL + M (minimise <-> maximise)

Add Favourite

Add this code as a favourite you can view later

No errors βœ…

Error Checks

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

In such cases, please feel free to contact us

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 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

IGCSE Syllabus (Pseudocode p33) O-Level Syllabus (Pseudocode p33) A-Level Pseudocode Guide A-Level Pseudocode Functions Report Bugs
YouTube Tutorials Discord Help
AssemblyCode BooleanLogic
DemosπŸ§‘πŸ»β€πŸ« Keyword ListπŸ“œ Monthly Challenge: Getting...πŸ“†
{"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:

  • πŸ“¦ Variables & Constants
  • βž• Arithmetic & Logical Operators
  • πŸ“₯πŸ“€ INPUT & OUTPUT
  • β“βŒ IF/ELSE & CASE
  • πŸ” FOR/WHILE/REPEAT...UNTIL Loops
  • πŸ”§ FUNCTIONS & PROCEDURES
  • πŸ”’ BYVAL & BYREF
  • πŸ”’ ARRAYs
  • πŸ“’ TYPEs (Records & Enums)
  • πŸ“„ File Handling (Text & RANDOM)
  • 🧩 Object-Oriented Programming
  • πŸͺ£ Sets
  • πŸ‘‰ Pointers
  • --- Extra Non-Syllabus Features ---
  • πŸ”Š Sound
  • 🎨 Canvas
  • πŸ–²οΈ Events
  • πŸ–₯️ Custom HTML

Additional programs uploaded by the community can be found on the search page.

While you are here, why not try one of the many - and ever increasing list of - pseudocode coding challenges.

To support hosting & domain costs, for $2, a premium account can be purchased - this has the following benefits:

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 :)

Drag & drop code or data files here

{"c":"\/\/ * Code Author: CallistaFan\n\/\/ * Date: 2025\/04\/14\n\/\/ * Description: \n\/\/ * Categories: \n\nDECLARE service,age: INTEGER\r\nDECLARE price: REAL\r\nDECLARE spec,choice: STRING\r\n\r\nPROCEDURE CS\r\nOUTPUT \"Welcome to C&S Car Sales System. How can we help you today?\"\r\nOUTPUT \"Type '1':Sales, '2':Price prediction\"\r\nINPUT service\r\n\r\nIF service = 1\r\n THEN\r\n DECLARE cost: REAL\r\nDECLARE method, months, member: STRING\r\nDECLARE mode: INTEGER\r\n\r\nOUTPUT \"Enter cost of the new car (to the nearest Rp):\"\r\nINPUT cost\r\nOUTPUT \"How would you like to pay? (cash\/installment)\"\r\nINPUT method\r\nIF method = \"cash\" OR \"Cash\" THEN\r\n cost \u2190 ROUND(cost, 0)\r\n OUTPUT \"Do you have a membership? (yes\/no)\"\r\n INPUT member\r\n IF member = \"yes\" OR \"Yes\" THEN\r\n cost \u2190 cost - (5 * cost \/ 100)\r\n ENDIF\r\n OUTPUT \"The cost when paid in cash is Rp \", cost\r\n OUTPUT \"Since you paid in cash, you get a voucher for 10% off your next purchase! Redeem at any of our outlets. Expiry date: December 31 2025\"\r\nENDIF\r\nREPEAT\r\nIF method = \"installment\" OR \"Installment\" THEN\r\n OUTPUT \"Choose between these installment modes: 12, 24, 36, 60:\"\r\n INPUT mode\r\n IF mode = 12 THEN\r\n cost \u2190 cost * (1 + 0.02 * 1)\r\n OUTPUT \"Interest rate: 2%\"\r\n OUTPUT \"Amount paid per month:\" , cost \/ 12\r\n OUTPUT \"The total cost when paid in installments of 12 months is Rp \", cost\r\n OUTPUT \"You get a voucher for a free car wash! Redeem at any of our outlets. Expiry date: December 31 2025\"\r\n ELSE IF mode = 24 THEN\r\n cost \u2190 cost * (1 + 0.04 * 2)\r\n OUTPUT \"Interest rate: 4%\"\r\n OUTPUT \"Amount paid per month:\" , cost \/ 24\r\n OUTPUT \"The total cost when paid in installments of 24 months is Rp \", cost\r\n OUTPUT \"You get 2 vouchers for free car washes! Redeem at any of our outlets. Expiry date: December 31 2025\"\r\n ELSE IF mode = 36 THEN\r\n cost \u2190 cost * (1 + 0.06 * 3)\r\n OUTPUT \"Interest rate: 6%\"\r\n OUTPUT \"Amount paid per month:\" , cost \/ 36\r\n OUTPUT \"The total cost when paid in installments of 36 months is Rp \", cost\r\n OUTPUT \"You get a voucher for a free car wash and a tyre change! Redeem at any of our outlets. Expiry date: December 31 2025\"\r\n ELSE IF mode = 60 THEN\r\n cost \u2190 cost * (1 + 0.08 * 5)\r\n OUTPUT \"Interest rate: 8%\"\r\n OUTPUT \"Amount paid per month:\" , cost \/ 60\r\n OUTPUT \"The total cost when paid in installments of 60 months is Rp \", cost\r\n OUTPUT \"You get a voucher for 5% off your next purchase, a free car wash, and a tyre change! Redeem at any of our outlets. Expiry date: December 31 2025\"\r\n ELSE \r\n OUTPUT \"Invalid mode. Enter again\"\r\n ENDIF\r\n ENDIF\r\n ENDIF\r\n ENDIF\r\n ENDIF\r\nUNTIL mode = 12 OR 24 OR 36 OR 60\r\nENDIF\r\n\r\nIF service = 2\r\n THEN\r\n OUTPUT \"Please enter car specification ex. Toyota Alphard 2024\"\r\n INPUT spec\r\n OUTPUT \"Enter price of car to nearest Rupiah\"\r\n INPUT price\r\n age \u2190 0\r\n WHILE age <> 9 AND price >= 16819000 DO\r\n price \u2190 ROUND(price,0)\r\n OUTPUT \"At age \",age,\" years old, \", spec,\" costs \", price\r\n age \u2190 age + 1\r\n IF age = 1\r\n THEN price \u2190 price * 0.6\r\n ENDIF\r\n IF age > 1\r\n THEN price \u2190 price * 0.8\r\n ENDIF\r\n ENDWHILE\r\n IF age = 9\r\n THEN OUTPUT \"This is maximum age for prediction\"\r\n ENDIF\r\n IF price < 16819000\r\n THEN OUTPUT \"Price the following year is below $1000 or Rp16819000, process terminated\"\r\n ENDIF\r\nENDIF \r\n\r\nIF service > 2\r\n THEN\r\n OUTPUT \"Wrong number entered. Please retry!\"\r\nENDIF\r\nENDPROCEDURE\r\n\r\nREPEAT \r\nOUTPUT \"\" \r\nOUTPUT \"Would you like to use the C&S Car Sales System? yes or no\"\r\nINPUT choice\r\nIF choice = \"yes\" THEN\r\n CALL CS\r\nELSE IF choice = \"no\"\r\n THEN OUTPUT \"Service session ended!\"\r\nENDIF\r\nENDIF\r\nUNTIL choice <> \"yes\"","t":"Car Sales System"}
ALL