program P1;var a, b, c, P, S: real;procedure Pr(a, b, c: real; var P: real);begin P := a + b + c;end;function F(a, b, c: real): real;var pp: real;begin pp := (a + b + c) / 2; f := sqrt(pp * (pp - a) * (pp - b) * (pp - c));end;begin Writeln('Vvedite a,b,c'); readln(a, b, c); pr(a, b, c, p); writeln('P = ', P, ' S = ', f(a, b, c));end.