program abc;
uses crt;
var a,b,x,y,h:integer;
begin
h:=п/2;
a:=0;
b:=3*п;
x:=a;
y:=0;
{цикл с предусловием:}
while x<=b do<br>y:=0.5*x+sin^2(x);
write(x,y);
x:=x+h;
{цикл с постусловием:}
repeat
y:=0.5*x+sin^2(x);
write(x,y);
x:=x+h;
until x>(b+h);
end.