A while statement is utilized to execute a statement as long as a specific condition holds
A while-do circle statement in Pascal permits dreary calculations till some test condition is fulfilled. As it were,
it over and again executes an objective articulation as long as a given condition is valid.
while do loop in Pascal programming.a program to loop multiple of 5 to 50
program whileLoop;
var
a: integer;
begin
a := 5;
while a <50 do
begin
writeln('value of a: ', a);
a := a + 5;
end;
readln;
end.
0 comments:
Post a Comment