Answer
See solution
Work Step by Step
A loop is defined as correct with respect to its pre- and postconditions if, and only if, whenever the algorithm variables satisfy the loop’s precondition and the loop terminates after a finite number of steps, then the algorithm variables satisfy the loop’s postcondition.