Создать блок-схему к программу паскаль .cпасибо заранее
program p20;
var a,b,c: real; i,n: integer;
function f(x: real): real;
begin
f: =sqr(x)*x*sqr(x)+1;
end;
begin
a: =0; b: =1; n: =20;
for i: =1 to n do begin
c: =(b+a)/2;
writeln('i=',i: 3,'x=',c: 10: 8,
'f(x)=',f(c): 12: 8);
if f(c)=0 then break
else if f(c)*f(0)> 0 then
a: =c else b: =c; end;
end.
Var x1,y1,x2,y2,x,y,x3,y3,x4,y4:integer;
begin
read(x1,y1,x2,y2,x,y);
x3:=x1;
y3:=y2;
x4:=x2;
y4:=y1;
if (x<x1) and (y<=y3) and (y>=y1) then writeln('W') else
if (x<x1) and (y>y3) then writeln('NW') else
if (x>=x1) and (x<=x2) and (y>y3) then writeln('N') else
if (x>x2) and (y>y3) then writeln('NE') else
if (x>x2) and (y<=y2) and (y>=y4) then writeln('E') else
if (x>x2) and (y<y4) then writeln('SE') else
if (x<=x4) and (x>=x1) and (y<y4) then writeln('S') else
if (x<x1) and (y<y1) then writeln('SW');
end.
Пример ввода:
-2 1 4 4 -3 5
Пример вывода:
NW