GCSE Computer Science (Pearson IGCSE)

Topic Summaries

ALGORITHMS AND PROGRAMMING: Algorithm representation

Pseudocode

  • This is a way to write algorithms in structured English.
  • It is not actual code – instead it is designed to be easy to read while providing a basic understanding of an algorithm’s function.
  • Pseudocode is used to plan and design algorithms before writing actual code as it helps programmers focus on logic without worrying about syntax errors.
  • Commonly used logical structures in pseudocode include: IF, ELSE, WHILE, FOR, INPUT, OUTPUT, etc.

INPUT number

IF number > 0 THEN

OUTPUT “Positive”

ELSE

OUTPUT “Not positive”

ENDIF

Unlock Pseudocode

Sign up to unlock the rest of this topic — plus every other topic, video, flashcard set and eBook guide in your SnapRevise Digital subscription.

Cancel anytime — instant access the moment you sign up.