Pseudocode uses four statement keywords to portray logic; IF, THEN, ELSE, and DO. Repetitive processing is portrayed using the statements DO WHILE (repeat an activity until a certain condition is met), and END DO (stop repeating the activity). The processing logic is written out in narrative sentences. The logic statement keywords are capitalized, and several levels of standard indentation are used to show decision and sub processes.
The prefix pseudo means ‘fake’; pseudocode, therefore, literally means “fake code” that is actually entered into the computer. Pseudocode uses human- language statements instead of symbols (such as flowchart symbols) to represent program logic. It is more precise in representing logic than regular, idiomatic English but does not follow specific programming languages syntax. Pseudocode statements can be composed and edited by hand or by using atypical off the shelf word processing program. Some people would argue further that pseudocode is much closer to actual code than ate flowcharts, which makes pseudocode more productive than flowcharting. However, some programmers don’t like to use pseudocode because it doesn’t depict the program logic visually like a flowchart does.