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 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 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πŸ§‘πŸ»β€πŸ« 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: \n\/\/ * Date: 2025\/10\/09\n\/\/ * Description: \n\/\/ * Categories: \n\nDECLARE siteName : STRING\r\nDECLARE birthday : DATE\r\nbirthday <-- 01\/05\/2023\r\n\r\nCONSTANT greetingEmoji = \"\ud83c\udf89\"\r\n\r\nTYPE Syllabus\r\n DECLARE board, code, guide : STRING\r\nENDTYPE\r\n\r\nDECLARE thisSyllabus : Syllabus\r\nthisSyllabus.board <-- \"Cambridge\"\r\nthisSyllabus.code <-- \"0478\/2210\/0984\/9618\"\r\nthisSyllabus.guide <-- \"9618\"\r\n\r\nsiteName <-- \"PseudocodePro\"\r\n\r\nDECLARE codeFeatures : ARRAY[1:20] OF STRING\r\ncodeFeatures[1] <-- \"\ud83d\udce6 Variables & Constants\"\r\ncodeFeatures[2] <-- \"\u2795 Arithmetic & Logical Operators\"\r\ncodeFeatures[3] <-- \"\ud83d\udce5\ud83d\udce4 INPUT & OUTPUT\"\r\ncodeFeatures[4] <-- \"\u2753\u274c IF\/ELSE & CASE\"\r\ncodeFeatures[5] <-- \"\ud83d\udd01 FOR\/WHILE\/REPEAT...UNTIL Loops\"\r\ncodeFeatures[6] <-- \"\ud83d\udd27 FUNCTIONS & PROCEDURES\"\r\ncodeFeatures[7] <-- \"\ud83d\udd22 BYVAL & BYREF\"\r\ncodeFeatures[8] <-- \"\ud83d\udd22 ARRAYs\"\r\ncodeFeatures[9] <-- \"\ud83d\udcd2 TYPEs (Records & Enums)\"\r\ncodeFeatures[10] <-- \"\ud83d\udcc4 File Handling (Text & RANDOM)\"\r\ncodeFeatures[11] <-- \"\ud83e\udde9 Object-Oriented Programming\"\r\ncodeFeatures[12] <-- \"\ud83e\udea3 Sets\"\r\ncodeFeatures[13] <-- \"\ud83d\udc49 Pointers\"\r\ncodeFeatures[14] <-- \"--- Extra Non-Syllabus Modules ---\"\r\ncodeFeatures[15] <-- \"\ud83d\udd0a Sound\"\r\ncodeFeatures[16] <-- \"\ud83c\udfa8 Canvas\"\r\ncodeFeatures[17] <-- \"\ud83d\uddb2\ufe0f Events\"\r\ncodeFeatures[18] <-- \"\ud83d\udda5\ufe0f Custom HTML\"\r\ncodeFeatures[19] <-- \"\ud83d\uded1 Breakpoints\"\r\ncodeFeatures[20] <-- \"\u2757 TRY CATCH\"\r\n\r\nDECLARE siteFeatures : ARRAY[1:24] OF STRING\r\nsiteFeatures <-- [\r\n \"\ud83c\udf1f Code-suggestions\/auto-complete\",\r\n \"\ud83c\udf08 Syntax highlighting\",\r\n \"\ud83c\udfeb Pseudocode Tutorials\",\r\n \"\ud83d\udd0e User-submitted programs\",\r\n \"\ud83e\udd47 Interesting practice activities of various difficulties (will eventually have 500+ total)\",\r\n \"\ud83d\udcc6 Monthly challenges\",\r\n \"\ud83d\udcd6 Single & combined past paper\/mark scheme etc bundles\",\r\n \"\ud83d\udd8b\ufe0f Automatically-generate trace tables\",\r\n \"\ud83d\udea9 Error messages & positions\",\r\n \"\ud83d\udcbe Loading\/saving\/sharing programs\",\r\n \"\u2728 Pretty-printing\",\r\n \"\u2328\ufe0f Keyboard shortcuts\",\r\n \"\ud83c\udfa8 Changing appearance - font size, theme, layout etc\",\r\n \"\ud83d\udcfa Fullscreen & \ud83d\udcf1 mobile support\",\r\n \"\ud83c\udf93 Syllabus-specific behaviour\",\r\n \"\u2615 Pseudocode to Java converter\",\r\n \"\ud83d\udc0d Pseudocode to Python converter\",\r\n \"\ud83c\udf33 Abstract Syntax Tree (AST) viewer\",\r\n \"\ud83c\udff7\ufe0f Token viewer\",\r\n \"\ud83e\ude84 Code snippets\",\r\n \"\ud83d\udcda IGCSE\/AS\/A2 Slides\/Homeworks\/Answers (work-in progress)\",\r\n \"\ud83d\udcaf Grade threshold chart\",\r\n \"\ud83d\udcca Custom data\",\r\n \"\ud83d\uddc4\ufe0f SQL challenges\"\r\n]\r\n\r\nTYPE ASCII_Art_Char\r\n DECLARE P, S, E, U, O, D, C, R : ARRAY[1:5] OF STRING\r\nENDTYPE\r\n\r\nDECLARE c : ASCII_Art_Char\r\n\r\nDECLARE userChoice : STRING\r\nOUTPUT \"\ud83c\udf89 Welcome to pseudocode.pro\r\n\r\n\u2b50 You might also like my sites asmcode.pro (assembly, fetch-decode execute cycle, trace tables etc) and booleanlogic.pro (Boolean expressions, logic circuits, truth tables etc)\r\n\r\n\ud83d\udcda Getting Started\r\n\r\nHopefully the site is fairly intuitive with simple \ud83d\udfe2 DEMO PROGRAMS \ud83d\udfe2 for each feature\r\n\r\nAfter choosing an option, you will also be able to see some instructions in the output window\r\n\r\n...but first, would you like to see the site's name in colour (y\/n)?\r\n\r\n\ud83d\udca1[if choosing 'y' you will have to drag the output window wider to see it properly]\\n\"\r\nINPUT userChoice\r\n\r\nOUTPUT \"\ud83d\udfe5 Pattern won't display properly...unless you drag the window wide \ud83d\ude42\"\r\n\r\nDECLARE colourLogo : BOOLEAN\r\nIF TO_LOWER(userChoice) = \"y\" THEN\r\n colourLogo <-- TRUE\r\nELSE\r\n colourLogo <-- FALSE\r\nENDIF\r\n\r\nCALL createSeperator(1, 1, 31, \"-\")\r\n\r\nCALL createLetters()\r\nCALL outputLogo()\r\n\r\nOUTPUT greetingEmoji, \" Welcome to \", siteName, \". I hope you enjoy this site! We have been helping students for \", getSiteAge(birthday), \"! \ud83c\udf82\"\r\nCALL createSeperator(1, 5, 11, \"*\")\r\n\r\nOUTPUT \"\ud83d\udcda Example programs can be found by clicking the select box at the bottom of the code editor, using the arrow buttons, the CTRL + LEFT\/RIGHT keys \u2b05\ufe0f\u27a1\ufe0f, scrolling to the demo programs\/keyword list, reading the tutorials etc\"\r\nCALL createSeperator(1, 1, 31, \"-\")\r\n\r\nOUTPUT \"\ud83c\udd70\ufe0f Depending on your screen size and purpose - individual or demonstration - you can also change the font size via the settings icon in the bottom left - or by using the CTRL + UP\/DOWN keys \u2b06\ufe0f\u2b07\ufe0f\"\r\nCALL createSeperator(1, 5, 11, \"*\")\r\n\r\nOUTPUT \"\ud83d\udd17 A link to the official pseudocode spec: \r\nIG & O-Level (page 33): https:\/\/pseudocode.pro\/0478-guide.pdf\r\nAS & A2: https:\/\/pseudocode.pro\/\" & thisSyllabus.guide & \"-guide.pdf\" \r\nCALL createSeperator(1, 1, 31, \"-\")\r\n\r\nOUTPUT \"\ud83d\udfe2 Currently supported code features for the \", thisSyllabus.code, \" syllabus from \", thisSyllabus.board, \":\\n\"\r\nCALL outputArray(codeFeatures, 14)\r\n\r\nCALL createSeperator(1, 5, 11, \"*\")\r\nOUTPUT \"\ud83c\udf10 Additional website features:\"\r\nCALL outputArray(siteFeatures, -1)\r\n\r\nOUTPUT \"\\n\ud83c\udf81 With \", (LENGTH(codeFeatures) - 1), \" code features and \", LENGTH(siteFeatures), \" website features, that makes \", (LENGTH(codeFeatures) + LENGTH(siteFeatures) - 1), \" reasons to enjoy this site!\"\r\n\r\nOUTPUT \"\\n\ud83d\udcc8 Note: this list is non-exhaustive and existing features will be continually improved\"\r\n\r\nCALL createSeperator(1, 1, 31, \"-\")\r\nOUTPUT \"\u2709\ufe0f For any feature suggestions, questions or anything else, you can reach out via the contact page: https:\/\/pseudocode.pro\/contact\"\r\n\r\n\r\nPROCEDURE outputArray(arr : ARRAY OF STRING, ignoreIndex : INTEGER)\r\n DECLARE currentListNum, n : INTEGER\r\n currentListNum <-- 1\r\n FOR n <-- 1 TO LENGTH(arr)\r\n IF n <> ignoreIndex THEN\r\n OUTPUT currentListNum, \") \", arr[n]\r\n currentListNum <-- currentListNum + 1\r\n ELSE\r\n OUTPUT arr[n]\r\n ENDIF\r\n NEXT n\r\nENDPROCEDURE\r\n\r\nPROCEDURE createSeperator(verticalMargin, horizontalGap, repeatNum : INTEGER, str : STRING)\r\n FOR n <-- 1 TO verticalMargin\r\n OUTPUT \"\"\r\n NEXT n\r\n\r\n DECLARE line : STRING\r\n line <-- \"\"\r\n\r\n FOR n <-- 1 TO repeatNum\r\n line <-- line & str\r\n FOR x <-- 1 TO horizontalGap\r\n line <-- line & \" \"\r\n NEXT x\r\n NEXT n\r\n\r\n OUTPUT line\r\n\r\n FOR n <-- 1 TO verticalMargin\r\n OUTPUT \"\"\r\n NEXT n\r\nENDPROCEDURE\r\n\r\nFUNCTION getSiteAge(b : DATE) RETURNS STRING\r\n DECLARE currentDate : DATE\r\n currentDate <-- TODAY()\r\n DECLARE monthStr, yearStr : STRING\r\n DECLARE months, years : INTEGER\r\n years <-- YEAR(currentDate) - YEAR(b)\r\n months <-- MONTH(currentDate) - MONTH(b)\r\n\r\n IF months < 0 THEN\r\n years <-- years - 1\r\n months <-- months + 12\r\n ENDIF\r\n\r\n IF months = 1 THEN\r\n monthStr <-- \" month\"\r\n ELSE\r\n monthStr <-- \" months\"\r\n ENDIF\r\n\r\n IF years = 1 THEN\r\n yearStr <-- \" year\"\r\n ELSE\r\n yearStr <-- \" years\"\r\n ENDIF\r\n\r\n IF years = 0 THEN\r\n RETURN months & monthStr\r\n ELSE\r\n RETURN years & yearStr & \" & \" & months & monthStr\r\n ENDIF\r\nENDFUNCTION\r\n\r\n\/\/ DECLARE : ARRAY[1:1, 1:5] OF STRING\r\n\r\nPROCEDURE createLetters()\r\n IF colourLogo = TRUE THEN\r\n c.P[1] <-- \"\ud83d\udfe2\ud83d\udfe2\ud83d\udfe2\"\r\n c.P[2] <-- \"\ud83d\udfe2\u26ab\ud83d\udfe2\"\r\n c.P[3] <-- \"\ud83d\udfe2\ud83d\udfe2\ud83d\udfe2\"\r\n c.P[4] <-- \"\ud83d\udfe2\u26ab\u26ab\"\r\n c.P[5] <-- \"\ud83d\udfe2\u26ab\u26ab\"\r\n\r\n c.S[1] <-- \"\ud83d\udd35\ud83d\udd35\ud83d\udd35\"\r\n c.S[2] <-- \"\ud83d\udd35\u26ab\u26ab\"\r\n c.S[3] <-- \"\ud83d\udd35\ud83d\udd35\ud83d\udd35\"\r\n c.S[4] <-- \"\u26ab\u26ab\ud83d\udd35\"\r\n c.S[5] <-- \"\ud83d\udd35\ud83d\udd35\ud83d\udd35\"\r\n\r\n c.E[1] <-- \"\ud83d\udfe1\ud83d\udfe1\ud83d\udfe1\"\r\n c.E[2] <-- \"\ud83d\udfe1\u26ab\u26ab\"\r\n c.E[3] <-- \"\ud83d\udfe1\ud83d\udfe1\ud83d\udfe1\"\r\n c.E[4] <-- \"\ud83d\udfe1\u26ab\u26ab\"\r\n c.E[5] <-- \"\ud83d\udfe1\ud83d\udfe1\ud83d\udfe1\"\r\n\r\n c.U[1] <-- \"\ud83d\udd34\u26ab\ud83d\udd34\"\r\n c.U[2] <-- \"\ud83d\udd34\u26ab\ud83d\udd34\"\r\n c.U[3] <-- \"\ud83d\udd34\u26ab\ud83d\udd34\"\r\n c.U[4] <-- \"\ud83d\udd34\u26ab\ud83d\udd34\"\r\n c.U[5] <-- \"\ud83d\udd34\ud83d\udd34\ud83d\udd34\"\r\n\r\n c.D[1] <-- \"\ud83d\udfe3\ud83d\udfe3\u26ab\"\r\n c.D[2] <-- \"\ud83d\udfe3\u26ab\ud83d\udfe3\"\r\n c.D[3] <-- \"\ud83d\udfe3\u26ab\ud83d\udfe3\"\r\n c.D[4] <-- \"\ud83d\udfe3\u26ab\ud83d\udfe3\"\r\n c.D[5] <-- \"\ud83d\udfe3\ud83d\udfe3\u26ab\"\r\n\r\n c.O[1] <-- \"\ud83d\udfe0\ud83d\udfe0\ud83d\udfe0\"\r\n c.O[2] <-- \"\ud83d\udfe0\u26ab\ud83d\udfe0\"\r\n c.O[3] <-- \"\ud83d\udfe0\u26ab\ud83d\udfe0\"\r\n c.O[4] <-- \"\ud83d\udfe0\u26ab\ud83d\udfe0\"\r\n c.O[5] <-- \"\ud83d\udfe0\ud83d\udfe0\ud83d\udfe0\"\r\n\r\n c.C[1] <-- \"\ud83d\udfe4\ud83d\udfe4\ud83d\udfe4\"\r\n c.C[2] <-- \"\ud83d\udfe4\u26ab\u26ab\"\r\n c.C[3] <-- \"\ud83d\udfe4\u26ab\u26ab\"\r\n c.C[4] <-- \"\ud83d\udfe4\u26ab\u26ab\"\r\n c.C[5] <-- \"\ud83d\udfe4\ud83d\udfe4\ud83d\udfe4\"\r\n\r\n c.R[1] <-- \"\u26aa\u26aa\u26aa\"\r\n c.R[2] <-- \"\u26aa\u26ab\u26aa\"\r\n c.R[3] <-- \"\u26aa\u26aa\u26aa\"\r\n c.R[4] <-- \"\u26aa\u26aa\u26ab\"\r\n c.R[5] <-- \"\u26aa\u26ab\u26aa\"\r\n ELSE\r\n c.P[1] <-- \"\u25cf\u25cf\u25cf\u25cf\u25cf\"\r\n c.P[2] <-- \"\u25cf \u25cf\"\r\n c.P[3] <-- \"\u25cf\u25cf\u25cf\u25cf\u25cf\"\r\n c.P[4] <-- \"\u25cf \"\r\n c.P[5] <-- \"\u25cf \"\r\n\r\n c.S[1] <-- \" \u25cf\u25cf\u25cf \"\r\n c.S[2] <-- \"\u25cf \"\r\n c.S[3] <-- \" \u25cf\u25cf\u25cf \"\r\n c.S[4] <-- \" \u25cf\"\r\n c.S[5] <-- \"\u25cf\u25cf\u25cf \"\r\n\r\n c.E[1] <-- \"\u25cf\u25cf\u25cf\u25cf\u25cf\"\r\n c.E[2] <-- \"\u25cf \"\r\n c.E[3] <-- \"\u25cf\u25cf\u25cf\u25cf\u25cf\"\r\n c.E[4] <-- \"\u25cf \"\r\n c.E[5] <-- \"\u25cf\u25cf\u25cf\u25cf\u25cf\"\r\n\r\n c.U[1] <-- \"\u25cf \u25cf\"\r\n c.U[2] <-- \"\u25cf \u25cf\"\r\n c.U[3] <-- \"\u25cf \u25cf\"\r\n c.U[4] <-- \"\u25cf \u25cf\"\r\n c.U[5] <-- \" \u25cf\u25cf\u25cf \"\r\n\r\n c.D[1] <-- \"\u25cf\u25cf\u25cf \"\r\n c.D[2] <-- \"\u25cf \u25cf \"\r\n c.D[3] <-- \"\u25cf \u25cf\"\r\n c.D[4] <-- \"\u25cf \u25cf \"\r\n c.D[5] <-- \"\u25cf\u25cf\u25cf \"\r\n\r\n c.O[1] <-- \" \u25cf\u25cf\u25cf \"\r\n c.O[2] <-- \"\u25cf \u25cf\"\r\n c.O[3] <-- \"\u25cf \u25cf\"\r\n c.O[4] <-- \"\u25cf \u25cf\"\r\n c.O[5] <-- \" \u25cf\u25cf\u25cf \"\r\n\r\n c.C[1] <-- \" \u25cf\u25cf\u25cf \"\r\n c.C[2] <-- \"\u25cf \"\r\n c.C[3] <-- \"\u25cf \"\r\n c.C[4] <-- \"\u25cf \"\r\n c.C[5] <-- \" \u25cf\u25cf\u25cf \"\r\n\r\n c.R[1] <-- \"\u25cf\u25cf\u25cf\u25cf\u25cf\"\r\n c.R[2] <-- \"\u25cf \u25cf\"\r\n c.R[3] <-- \"\u25cf\u25cf\u25cf\u25cf\u25cf\"\r\n c.R[4] <-- \"\u25cf \u25cf \"\r\n c.R[5] <-- \"\u25cf \u25cf\"\r\n ENDIF\r\nENDPROCEDURE\r\n\r\nPROCEDURE outputLogo()\r\n DECLARE lines : ARRAY[1:5] OF STRING\r\n DECLARE n : INTEGER\r\n FOR n <-- 1 TO LENGTH(lines)\r\n lines[n] <-- \"\"\r\n NEXT n\r\n\r\n CALL addLetter(lines, c.P)\r\n CALL addLetter(lines, c.S)\r\n CALL addLetter(lines, c.E)\r\n CALL addLetter(lines, c.U)\r\n CALL addLetter(lines, c.O)\r\n CALL addLetter(lines, c.D)\r\n CALL addLetter(lines, c.O)\r\n CALL addLetter(lines, c.C)\r\n CALL addLetter(lines, c.O)\r\n CALL addLetter(lines, c.D)\r\n CALL addLetter(lines, c.E)\r\n CALL outputWord(lines, 0)\r\n\r\n OUTPUT \"\"\r\n\r\n CALL addLetter(lines, c.P)\r\n CALL addLetter(lines, c.R)\r\n CALL addLetter(lines, c.O)\r\n CALL outputWord(lines, 4)\r\n\r\n CALL createSeperator(1, 1, 31, \"-\")\r\n\r\nENDPROCEDURE\r\n\r\nPROCEDURE addLetter(BYREF lines, letter : ARRAY OF STRING)\r\n DECLARE row : INTEGER\r\n \r\n FOR row <-- 1 TO LENGTH(letter)\r\n lines[row] <-- lines[row] & letter[row] & \" \"\r\n NEXT row\r\nENDPROCEDURE\r\n\r\nPROCEDURE outputWord(BYREF lines : ARRAY OF STRING, BYVAL leadingChars : INTEGER)\r\n\r\n DECLARE leadingSpaceCount, n : INTEGER\r\n DECLARE leadingSpaces : STRING\r\n leadingSpaces <-- \"\"\r\n\r\n IF colourLogo = TRUE THEN\r\n leadingSpaceCount <-- leadingChars * 7\r\n ELSE\r\n leadingSpaceCount <-- leadingChars * 6\r\n ENDIF\r\n\r\n FOR n <-- 1 TO leadingSpaceCount\r\n leadingSpaces <-- leadingSpaces & \" \"\r\n NEXT n\r\n\r\n FOR n <-- 1 TO LENGTH(lines)\r\n OUTPUT leadingSpaces, lines[n]\r\n lines[n] <-- \"\"\r\n NEXT n\r\n\r\nENDPROCEDURE","t":"Star"}
9618
XbcOj