Advertisement
deced

Untitled

Sep 14th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.67 KB | None | 0 0
  1. program ex1;
  2.  
  3. uses
  4.   System.SysUtils;
  5.  
  6. var
  7.       WallX, WallZ, BrickX,BrickY,BrickZ    : double;
  8.       IsCorrect : Boolean;
  9.       I,J,PositiveCount : integer;
  10.       Delta : array[0..1] of array[0..2] of double;
  11. begin
  12.  
  13.       for i := 0 to 1 do
  14.       begin
  15.         PositiveCount :=0;
  16.         for j := 0 to 2 do
  17.           if Delta[i,j] >= 0  then
  18.             PositiveCount := PositiveCount +1;
  19.  
  20.           if PositiveCount >1 then
  21.             IsCorrect := true;
  22.       end;
  23.       if IsCorrect then
  24.         Writeln('Кирпич влезет в отверстие')
  25.       else
  26.         Writeln('Кирпич не влезет в отверстие');
  27.       readln;
  28. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement