An Algorithm is a set of instructions for carrying out a task. There are many ways in which an algorithm can be expressed, including: • Written language • Pseudo-code (an abbreviated form of language, putting on instruction per line and making use of specific words such as repeat) • Flow chart • Computer program
Division by repeated subtraction (Pseudo code) Read A,B (A>B; A,B>0) Counter=0 repeat Set A to A-B Increment Counter until A