program Triangle;
var
a, b, c: integer;
s, p: real;
function IsTriangle(a, b, c: integer): boolean;
begin
if (a + b > c) and (a + c > b) and (b + c > a) then
IsTriangle := true
else
IsTriangle := false;
end;
function Area(a, b, c: integer): real;
var
p: real;
begin
p := (a + b + c) / 2;
Area := sqrt(p * (p - a) * (p - b) * (p - c));
end;
procedure TriangleType(a, b, c: integer);
begin
if (a * a + b * b = c * c) or (a * a + c * c = b * b) or (b * b + c * c = a * a) then
writeln('Day la mot tam giac vuong.')
else if (a * a + b * b < c * c) or (a * a + c * c < b * b) or (b * b + c * c < a * a) then
writeln('Day la mot tam giac tu.')
else
writeln('Day la mot tam giac nhon.');
end;
begin
writeln('Nhap ba so nguyen duong:');
readln(a, b, c);
if IsTriangle(a, b, c) then
begin
writeln('Diện tích của tam giác là: ', Area(a, b, c):0:2);
TriangleType(a, b, c);
end
else
writeln(a, '; ', b, '; ', c, ' khong la 3 canh cua tam giac');
end.