lab4_4a

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
program Lab44a;
var x, y, z, h, k1, k2: real;
begin
writeln('vvedit storoni trikutnika');
readln(x, y, z);
if (x > y) and (x > z) then begin
h := x;
k1 := y;
k2 := z;
end else if (y > x) and (y > z) then begin
h := y;
k1 := x;
k2 := z;
end else begin
h := z;
k1 := x;
k2 := y;
end;
if sqr(h) = sqr(k1) + sqr(k2) t3.hen begin
writeln('pramokutniy');
end else if sqr(h) > sqr(k1) + sqr(k2) then begin
writeln('tupokutniy');
end else begin
writeln('gostrokutniy');
end;
end.