3 Loop Repetition The Loop or Repetition allows a statements to be executed

3 loop repetition the loop or repetition allows a

This preview shows page 3 - 6 out of 25 pages.

3. Loop (Repetition): The Loop or Repetition allows a statement(s) to be executed repeatedly based on certain loop condition e.g. WHILE, FOR loops. Advantages of algorithm It is a step-wise representation of a solution to a given problem, which makes it easy to understand. An algorithm uses a definite procedure. It is not dependent on any programming language, so it is easy to understand for anyone even without programming knowledge. Every step in an algorithm has its own logical sequence so it is easy to debug.
Image of page 3