Cycle Precautions


1.break location

Record 1.break will not execute the code below where the cycle, and therefore the need to record or display before the break

image

2. break if a plurality of conditions is, should appear as the first condition to determine whether or not to cycle

3. break interrupt conditions if the protecting layer on cycle

image

2. The range of action of the parameters

If the parameter at the end of a cycle, can be reset by this parameter acts only in this cycle, if the beginning of each cycle when the initial values ​​are fixed values, it needs to be placed outside the loop participation

image

Cycle pedometer, is increased in steps to be placed at the end of the cycle, placing an amount required to characterize i becomes i + 1

Guess you like

Origin www.cnblogs.com/yuvejxke/p/12016278.html