Skip to content
Pseudocode Converter

Rules

Pseudocode rules

Choose an exam board and a language.

IB

IB Computer Science

CAPITAL variable names, = for assignment, loop … end loop.

loop I from 0 to 4    output Iend loop

AP CSP

AP Computer Science Principles

← for assignment, DISPLAY, REPEAT, lists that start at 1.

i ← 0REPEAT UNTIL(i ≥ 5){   DISPLAY(i)   i ← i + 1}

Cambridge IGCSE

Cambridge IGCSE / O Level 0478 · 2210

DECLARE with types, PascalCase names, FOR … NEXT, DIV(a, b).

DECLARE I : INTEGERFOR I ← 0 TO 4    OUTPUT INEXT I

Cambridge A Level

Cambridge International AS & A Level 9618

Like IGCSE, with IF … THEN on one line, a DIV b, MID and &.

DECLARE I : INTEGERFOR I ← 0 TO 4   OUTPUT INEXT I