Forezz

Практическая 9(2)

May 22nd, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.19 KB | None | 0 0
  1. program Project1;
  2. var
  3.    c,x,p,s : real;
  4. begin
  5.   readln(c);
  6.   x :=sqrt(sqr(c) - sqr(c/2));
  7.   p :=sqr(c) + c/2 +x;
  8.   s := c/4 * x;
  9.   writeln('S=', s:2:2, #10'P=', p:2:2);
  10.   readln;
  11. end.
Add Comment
Please, Sign In to add comment