To use a loop in pascal
The initial step is executed first and only.This step allows you to declare and initialize any loop control variables.
Next the conditions is evaluated.
After the body of the for-do loop executes the value of the variable is either increased or decreased.
The condition is now evaluated again.