Metrick

Triangel

May 24th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.39 KB | None | 0 0
  1. program Triangel;
  2.  
  3. function pl_treug(a, b, c :real): real;
  4. var
  5.   p: real;
  6. begin
  7.   p = (a + b + c)/2;
  8.   result = sqrt(p*(q - a)*(p - b)*)p - c));
  9.  
  10.   pl_treug = result;
  11. end;
  12.  
  13. var
  14.   x, y, z, res: real;
  15.  
  16. begin
  17.   WriteLn('Введите три стороны треугольника');
  18.   ReadLn(x, y, z);
  19.   res = pl_treug(x, y, z);
  20.   WriteLn('Результат: ', x, y, z)
  21. end.
Advertisement
Add Comment
Please, Sign In to add comment