Advertisement
LordDimon

3

Apr 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.55 KB | None | 0 0
  1. Program pas;
  2. Var
  3.   a, b, c, x, y, S, n : real;
  4. Begin
  5.   write('Введите ширину комнаты - ');
  6.   readln(a);
  7.   write('Введите длину комнаты - ');
  8.   readln(b);
  9.   write('Введите высоту комнаты- ');
  10.   readln(c);
  11.   write('Введите длину доски - ');
  12.   readln(x);
  13.   write('Введите ширину доски- ');
  14.   readln(y);
  15.   S:=2*(a*b+a*c+b*c);
  16.   n:=S/x*y;
  17.    if (n <> trunc(n)) then n:=Trunc(N)+1;
  18.   write('Необходимо ', n, ' досок');
  19.   readln;
  20.     End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement