Pseudocode

Pseudocode is a plain language description of the steps in an algorithm or another system. Pseudocode often uses structural conventions of a normal programming language but is intended for human reading rather than machine reading. This allows programmers to share the logic of an algorithm even if each programmer is working in a different programming language. When writing pseudocode, it is important to remember:

  • To define the steps of the main algorithm
  • To refine the main steps where possible (not all main steps need refined)
  • That there is no need to declare variables
  • Indentation should be used to help identify use of loops and selection statements
REPEAT UNTIL USER INPUTS AN X
  ASK THE USER FOR THEIR AGE
  IF AGE >= 16
    PRINT "You are old enough to vote"
  ELSE
    PRINT "Sorry, you must wait until you are older"
Report a Glow concern
Cookie policy  Privacy policy

Glow Blogs uses cookies to enhance your experience on our service. By using this service or closing this message you consent to our use of those cookies. Please read our Cookie Policy.