program Project2;
uses
SysUtils,
Math;
var
a, b, c, d, x, y, z : Real;
v : Real;
begin
{ TODO -oUser -cConsole Main : Insert code here }
Write('a='); Readln(a);
Write('b='); Readln(b);
Write('c='); Readln(c);
Write('d='); Readln(d);
Write('x='); Readln(x);
Write('y='); Readln(y);
Write('z='); Readln(z);
begin
if ((sqr(c) <= (sqr(x) + sqr(y) + sqr(z))) and
((sqr(x) + sqr(y) + sqr(z)) <= sqr(d)) ) then begin
V := (a / (max(x , max(y,z))));
writeln('Основна гілка першого if');
end else begin
writeln('Побічна гілка першого if');
end;
end;
begin
if ((sqr(x) + sqr(y) + sqr(z)) <= sqr(c) ) then
V := (b / (min(x , min(y,z))))
else
V := (a + b)/2;
end;
Write(V);
Readln;
end.
cHJvZ3JhbSBQcm9qZWN0MjsKCnVzZXMKICBTeXNVdGlscywKICBNYXRoOwp2YXIKICBhLCBiLCBjLCBkLCB4LCB5LCB6IDogUmVhbDsKICB2IDogUmVhbDsKYmVnaW4KICB7IFRPRE8gLW9Vc2VyIC1jQ29uc29sZSBNYWluIDogSW5zZXJ0IGNvZGUgaGVyZSB9CiAgV3JpdGUoJ2E9Jyk7IFJlYWRsbihhKTsKICBXcml0ZSgnYj0nKTsgUmVhZGxuKGIpOwogIFdyaXRlKCdjPScpOyBSZWFkbG4oYyk7CiAgV3JpdGUoJ2Q9Jyk7IFJlYWRsbihkKTsKICBXcml0ZSgneD0nKTsgUmVhZGxuKHgpOwogIFdyaXRlKCd5PScpOyBSZWFkbG4oeSk7CiAgV3JpdGUoJ3o9Jyk7IFJlYWRsbih6KTsKYmVnaW4KICBpZiAoKHNxcihjKSA8PSAoc3FyKHgpICsgc3FyKHkpICsgc3FyKHopKSkgYW5kCiAgICAgKChzcXIoeCkgKyBzcXIoeSkgKyBzcXIoeikpIDw9IHNxcihkKSkgKSB0aGVuIGJlZ2luCiAgICAgIFYgOj0gKGEgLyAobWF4KHggLCBtYXgoeSx6KSkpKTsKICAgICAgd3JpdGVsbign0J7Rgd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