While loop


Is used when we know the condition which has to be met in order to execute the loop.


program while1;
var
i:integer;
begin
i:=1;
while(i<10) do
begin
writeln('i = ',i);
i:=i+1;
end;

end.




No comments:

Post a Comment