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 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 one or more .pseudo files for future use (e.g. backup/sharing/transferring to a different device)

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

Note that these local saves won't persist next time you open the site if you were using it in a private window - clearing your browser's cache will also cause all your programs to be lost

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

IGCSE Syllabus (Pseudocode p35) O-Level Syllabus (Pseudocode p35) A-Level Syllabus A-Level Pseudocode Guide A-Level Pseudocode Functions Report Bugs
YouTube Tutorials Discord Help
AssemblyCode BooleanLogic CIESchedule Program52
DemosπŸ§‘πŸ»β€πŸ« KeywordsπŸ“œ 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: INDIGOAIRLINES\n\/\/ * Date: 2026\/05\/15\n\/\/ * Description: \n\/\/ * Categories: \n\nIF isStrong THEN\r\n OUTPUT \"Inigo?? : I'm sorry... but did you GENUINELY just use an actual secure password? Hold on... (scribble scribble) lemme... actually write this down, genuine peak password ;-;\"\r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [Intermediate] Badge!\"\r\n OUTPUT \"--- 'Actually Secure' Badge Aquired ---\"\r\n OUTPUT password, \"... as a password... might actually not be bad.\"\r\nENDIF\r\nIF username = \"qwertyuiop[]\" AND password = \"asdfghjkl;'\" THEN\r\n OUTPUT \"I take back what I said about alphabetical...\"\r\n OUTPUT \"Inigo?? : Thank you.\"\r\n OUTPUT \"No, I'm trying to say this idea is even stupider.\"\r\n OUTPUT \"What?! It's possible!\"\r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [Intermediate] Badge!\"\r\n OUTPUT \"--- 'Sequential Stupidity' Badge Aquired ---\"\r\n OUTPUT \"Just... why? What's even the point of typing the first and second row of the keyboard into here?! HOW WOULD THIS EVEN BE FIGURED OUT?!\"\r\nENDIF\r\nIF username = \"Percentage\" AND password = \"Errors\" AND percentwin AND NOT gambre THEN\r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [Intermediate] Badge!\"\r\n OUTPUT \"--- 'Slow Systems' Badge Aquired ---\"\r\n OUTPUT \"Thank you for fixing the system!\"\r\nENDIF\r\n\/\/----------------------------------------------------------------------\r\n\/\/Difficult Difficulty Badges\r\nIF special AND username = \"END\" AND password = \"SESSION\" THEN\r\n OUTPUT \"S1stem error... s0rry, we can't end this sessi0n. Do not leave!1.\"\r\n INPUT ender\r\n IF ender = \"1001\" THEN\r\n OUTPUT \"I'm sorry, the C0d3 you have input is 1nvalid. Do not try again.\"\r\n INPUT ender\r\n IF ender = \"1001031\" THEN\r\n OUTPUT \" I'nn sorry, this code does not follow binary format. DO NOT try again.\"\r\n INPUT ender\r\n IF ender = \"10010111\" THEN\r\n OUTPUT \"1'm sorry, th1s c0de does n0t follow ####d3c1mal format. Do NOT try again.\"\r\n INPUT ender\r\n IF ender = \"97\" THEN\r\n count \u2190 0\r\n WHILE count < 100 DO\r\n OUTPUT \"1'nn $0!%Y, 7h1$ (0d3 d03$ n07 f0!!0w f0%nn@t.\"\r\n count \u2190 count + 1\r\n ENDWHILE\r\n OUTPUT \">>>>>>>>>> Obtained New [Difficult] Badge!\"\r\n OUTPUT \"--- 'System Issue' Badge Aquired ---\"\r\n OUTPUT \"Sorry. 7h1$ (0d3 does not f0!!0w the format of 'Enter in a username! (Enter one in now!!1!!1)' or of 'Enter in a password! (Yes, now enter one now!1!!1!!!1)'\"\r\n ENDIF\r\n ENDIF\r\n ENDIF\r\n ELSE\r\n OUTPUT \". . .\"\r\n OUTPUT \">>>>>>>>>> Obtained New [Intermediate] Badge!\"\r\n OUTPUT \"--- 'Glitched' Badge Aquired ---\"\r\n OUTPUT \"'Something's... definitely off.'\"\r\n\r\n ENDIF\r\nENDIF\r\nIF special2 AND username = \"Go\" AND password = \"back.\" THEN\r\n OUTPUT \"I didn't tell you to copy me. I told you to go back.\"\r\n INPUT e\r\n OUTPUT \"You shouldn't be here.\"\r\n INPUT e2\r\n OUTPUT \"'\", e, \"' '\", e2, \".' Really?\"\r\n INPUT e3\r\n IF e3 = \"e3\" THEN\r\n OUTPUT \"You know too much. Go away.\"\r\n ENDIF\r\n OUTPUT \". . .\"\r\n OUTPUT \">>>>>>>>>> Obtained New [Difficult] Badge!\"\r\n OUTPUT \"--- '..???' Badge Aquired ---\"\r\nENDIF\r\nIF username = \"Enter\" AND password = \"Casino\" THEN\r\n OUTPUT \"Inigo?? : WHAT? You WILLINGLY wanna gamble?! Alright... alright... go ahead! Test your luck! I'll choose a number between one and a hundered! You can put in anything for your guess of course... if you don't want the badge that is.\"\r\n OUTPUT \" \"\r\n OUTPUT \"-- STARTING MINIGAME!! --\"\r\n OUTPUT \"Input yer guess! Get within 20, and the badge is yers! The second slot to type is just to banter I guess. Use it like it's a lucky charm! The range of the guess is 1-100\"\r\n count \u2190 0\r\n WHILE count < 20 DO\r\n OUTPUT \" \"\r\n OUTPUT \"Input your INTEGER Guess.\"\r\n INPUT guess\r\n OUTPUT \" \"\r\n OUTPUT \"Input yer lucky charm! (Or don't, your choice.)\"\r\n INPUT guess2\r\n guess2 \u2190 LCASE(guess2)\r\n hahafactor \u2190 RANDOM()\r\n hahafactor \u2190 hahafactor*10\r\n hahafactor \u2190 ROUND(hahafactor, 1)\r\n OUTPUT hahafactor\r\n OUTPUT \" \"\r\n IF guess2 = \"hey, this is rigged!\" THEN\r\n OUTPUT \"Inigo?? : AH SHIT! EVERYONE RUN!!!\"\r\n OUTPUT \"(Everyone runs..!)\"\r\n OUTPUT \">>>>>>>>>> Obtained New [Difficult] Badge!\"\r\n OUTPUT \"--- 'Gambling Addiction' Badge Aquired ---\"\r\n OUTPUT \"'Rules are rules, and I'm not in them!'\"\r\n count \u2190 count+20\r\n ENDIF\r\n IF hahafactor >= 6 THEN\r\n guess3 \u2190 guess+20\r\n OUTPUT \"Terrible luck mate, your guess was \", guess, \" but the number rolled was \", guess3, \"! Sorry! Try again!\"\r\n ENDIF\r\n IF hahafactor <= 5 AND hahafactor <> 0.0 THEN\r\n guess3 \u2190 guess-20\r\n OUTPUT \"Terrible luck mate, your guess was \", guess, \" but the number rolled was \", guess3, \"! Sorry! Try again!\"\r\n ENDIF\r\n IF hahafactor = 0.0 THEN\r\n guess3 \u2190 guess\r\n OUTPUT \"Terrible luck mate you... you... YOU GUESSED RIGHT?!\r\n !\"\r\n OUTPUT \">>>>>>>>>> Obtained New [Difficult] Badge!\"\r\n OUTPUT \"--- 'Gambling Addiction' Badge Aquired ---\"\r\n OUTPUT \"'Rules are rules, and you... you beat my rigged casino?!' - Inigo??\"\r\n count \u2190 count+20\r\n gamble \u2190 TRUE\r\n ENDIF\r\n count \u2190 count+1\r\n ENDWHILE\r\n OUTPUT \" \"\r\n OUTPUT \"Sorry, mate! But that's all the rolling ye get! Anyways... see ya next time! Oh... and no badge!\"\r\n IF guess2 = \"hey, this is rigged!\" THEN\r\n OUTPUT \"Inigo?? : BUT THEY DID GET THE BADGE! RUN! THEY KNOW WE TRICKED THEM!!! (runs away)\"\r\n OUTPUT \"HUH?! Er... uh... I... see you next time! (runs away too)\"\r\n ENDIF\r\n IF gamble THEN\r\n OUTPUT \"Inigo?? : B-but they actually beat it! LEGIT!\"\r\n OUTPUT \"H-HU?! HOW?! I THOUGHT YOU RI- uhh i mean... toodoloo player!\"\r\n ENDIF\r\nENDIF\r\nIF username = \"Percentage\" AND password = \"Errors\" AND percentwin AND gambre THEN\r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [Difficult] Badge!\"\r\n OUTPUT \"--- 'FAST SYSTEMS' Badge Aquired ---\"\r\n OUTPUT \"JACKPOT JACKPOT! That HAS to be a new record!\"\r\nENDIF\r\nIF username = \"Math\" AND password = \"Is fun\" THEN\r\n OUTPUT \"Inigo?? : Hoho, REAAAAAAALY NOW?! Have some fun solving this you shithead!\"\r\n OUTPUT \"I = \u222b(From -inf to inf) e^(-x^2) dx\"\r\n OUTPUT \"Inigo?? : SOLVE FOR I, GOOD LUCK WITH THIS INTEGRAL YA BASTARD!!\"\r\n DECLARE integral : STRING\r\n INPUT integral\r\n integral \u2190 LCASE(integral)\r\n IF integral = \"root pi\" OR integral = \"sqrt(pi)\" THEN\r\n OUTPUT \"Inigo?? : WHUH.. I... HUH?! You..?\" \r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [Difficult] Badge!\"\r\n OUTPUT \"--- 'NERD!!' Badge Aquired ---\"\r\n OUTPUT \"Inigo?? : You... YOU CANT SOLVE THAT! You... YOU CHEATER!!!\"\r\n ELSE\r\n OUTPUT \"Inigo?? : Not so fun now, is it? That's what I thought. Now shoo!\"\r\n ENDIF\r\nENDIF\r\n\/\/----------------------------------------------------------------------\r\n\/\/Problematic Diffculty Badges\r\nIF username = \"You came back.\" THEN\r\n OUTPUT \" \"\r\n INPUT password\r\n IF password = \"You know too much.\" THEN\r\n OUTPUT \" \"\r\n INPUT username \r\n IF username = \"Really?\" THEN\r\n OUTPUT \" \"\r\n INPUT password\r\n IF password = \"You shouldn't be here.\" THEN\r\n OUTPUT \"you really shouldn't.\"\r\n INPUT username\r\n INPUT password\r\n IF username = \"I told you to go back.\" AND password = \"I didn't tell you to copy me.\" THEN\r\n OUTPUT \"did i?\"\r\n INPUT username\r\n INPUT password\r\n IF username = \"username\" AND password = \"password\" THEN\r\n OUTPUT \">>>>>>>>>> Obtained New [PROBLEMATIC] Badge!\"\r\n OUTPUT \"--- 'Diven Deep' Badge Aquired ---\"\r\n OUTPUT \"If you're smart, you should know not to go any deeper. User. Now \", name, \" don't Pass. Up This Opportunity to leave now.\"\r\n ENDIF\r\n ENDIF\r\n ENDIF\r\n ENDIF\r\n ENDIF\r\nENDIF\r\nIF name = username AND username = password AND lenusername >= 30 THEN\r\n OUTPUT \"I... I have multiple questions.\"\r\n INPUT e\r\n OUTPUT \"FIRSLY WHY IS YOUR USERNAME, PASSWORD, AND NAME ALL SO LONG\"\r\n OUTPUT \"AND SECONDLY WHY ARE THEY THE SAME\"\r\n OUTPUT \"GO GET SOME BETTER SECURITY GNG\"\r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [PROBLEMATIC] Badge!\"\r\n OUTPUT \"--- 'Absurd Carelessness' Badge Aquired ---\"\r\n OUTPUT \"'\", name, \"'?! THiS IS WHAT YOU USED?! SERIOUSLY?! I mean it's long at least BUT STILL!!!\"\r\nENDIF\r\nIF username = \"Inigo\" AND password = \"Psiconeuroendocrinoimmunologia\" THEN\r\n OUTPUT \"Inigo?? : Oh... it's the real me logging in. Hiya!\"\r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [PROBLEMATIC] Badge!\"\r\n OUTPUT \"--- 'Hiya!!!' Badge Aquired ---\"\r\n OUTPUT \"'Inigo (You) : Oh, hiya other me!!!1!!1!'\"\r\nENDIF\r\nIF guess2 = \"hey, this is rigged!\" AND percentwin THEN\r\n INPUT e2\r\n OUTPUT \"What a gambling session... I'm completely pooped...\"\r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [PROBLEMATIC] Badge!\"\r\n OUTPUT \"--- 'Professional Gambler' Badge Aquired ---\"\r\n OUTPUT \"Thank you for fixing the system! AND visiting the casino!\"\r\nENDIF\r\n\/\/Insanity Difficulty Badges\r\nIF gamble AND percentwin AND gambre THEN\r\n INPUT e2\r\n OUTPUT \"I just... \"\r\n OUTPUT \"I like just...\"\r\n OUTPUT \"I CAN'T STOP WINNING!!!\"\r\n OUTPUT \"JACKPOT ON PERCENTAGE!!!\"\r\n OUTPUT \"JACKPOT ON THE CASINO!!!\"\r\n OUTPUT \"I CAN'T STOP WINNING!!!\"\r\n OUTPUT \" \"\r\n OUTPUT \">>>>>>>>>> Obtained New [INSANITY] Badge!\"\r\n OUTPUT \"--- 'The True Hakari' Badge Aquired ---\"\r\n OUTPUT \"'IDLE DEATH GAMBLE..!!!!!' - Some Wise No-Life Gambler\"\r\nENDIF\r\n\/\/UNATTAINABLE Difficulty Badges","t":"PART 4 of the password game"}
{}
0478