We must design a Loop, so that before or after each iteration, it checks to see if the task is done. If it in not done, the loop repeats one more time;if task is done,the loop terminates. This test is known as Loop Control Expression.
2. Concept of Loop
We must design a Loop, so that before or after each iteration, it
checks to see if the task is done. If it in not done, the loop repeats
one more time;if task is done,the loop terminates. This test is
known as Loop Control Expression.
6. • Initialization may be Implicit or Explicit.
• Implicit-No direct initialization of code, depends
on pre-existing situation
• Explicit-we include code to set the beginning
values of key loop variables.
• Infinite Loop if condition is not happened
• Loop updates
INITIALIZATION AND UPDATING