Iteration (Latin iteratio – repetition) – repetition activity (usually multiple) the same instruction (or multiple instructions) in a loop.
We use it when we do not know the exact number of repetitions, but it is possible that the given instruction will not be executed even once. Instructions are executed as long as the condition is true.
var x: real;
write ('Enter a numeric factor.');
while (x<= 0) or (x>=1) do
writeln ('The value given is incorrect. ');
write (' Enter a number from the interval (0;1)');
Stopping the loop while:
var a,b,c, delta: real;
while true do
writeln('a=0 - stop');
if a=0 then Break else
writeln('delta=',delta :0 :2);
The program calculates the „delta” of the square equation