Free tool9618 · O Level · IGCSE
Pseudocode, one line at a time
Write Cambridge pseudocode and run it. Step through it line by line, and watch the variables and the trace table fill in. Pick an example from the Project panel to start.
Your code is saved on this device only. For Python, use the Python IDE.
Pmy_program.pseudo
✓
== or <- gives ←F5 / Shift+F10 / Ctrl+Enter RunShift+F9 Debug, F9 ResumeF8 StepF7 BackClick a line number: breakpointTab / Shift+Tab indentEsc then Tab leaves the editorRun window: ↑ ↓ earlier lines
- DECLARE X : INTEGER
- DECLARE A : ARRAY[1:10] OF REAL
- DECLARE G : ARRAY[1:3, 1:3] OF CHAR
- CONSTANT Max = 10 (or ←)
- X ← X + 1
- INPUT X · OUTPUT "Total: ", X
- IF ... THEN ... ELSE ... ENDIF
- CASE OF X ... OTHERWISE ... ENDCASE
- FOR I ← 1 TO 10 STEP 2 ... NEXT I
- WHILE ... DO ... ENDWHILE
- REPEAT ... UNTIL ...
- PROCEDURE / CALL, BYREF, BYVAL
- FUNCTION ... RETURNS ... RETURN
- TYPE ... ENDTYPE records, S.Name
- + - * / ^ DIV MOD &
- = <> < > <= >= AND OR NOT
- LENGTH LEFT RIGHT MID SUBSTRING
- LCASE UCASE TO_UPPER TO_LOWER
- NUM_TO_STR STR_TO_NUM IS_NUM ASC CHR
- INT ROUND RAND RANDOM MOD() DIV()
- OPENFILE READFILE WRITEFILE CLOSEFILE EOF
- // comments
Follows the Cambridge pseudocode guides for 9618 and 0478/2210. Names are not case sensitive; keywords are in capitals. A new trace table row starts at each pass of a loop, and when a column in the row already has a value. Your code is kept on this device only.