Example (computer problem)
 
 
- Problem 2: Count the number of times the letter ‘a’ occurs in a piece of text. 
- 1. Initialize Acounter = 0;  // Assignment - memory
2. Input a character from input. //input
3. If it is an “a” then  // selection
         Increment Acounter; // arithmetic - memory
4. Repeat steps 2 - 3 until end of input. //repetition
5. Output Acounter. // output