The Different Uses of Looping

1. For Do ( Looping without clause )
For do is a looping structure that will perform a loop as much as counter of looping. the counter can be adjust as how we want.
Example:
for counter looping for x to y do
means that looping will perform for x to y as much as b-a+1 loop.


2. Repeat-until (looping with clause)
Repeat-until is a looping structure that will do the looping until the conditions are met.
Example: we want to search a name of employees and the input is the employees code.
Searching Program : searching will stop until the employees code are equal with the input




Previous
Next Post »