klasscho

Untitled

Nov 28th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. procedure FindMax(const Matrixx: MatrixType; n: Integer);
  2. var
  3. Max, iMax, jMax, i, j: Integer;
  4. begin
  5. Max := Matrixx[0][0];
  6. iMax := 0;
  7. jMax := 0;
  8. for i := 0 to n do
  9. begin
  10. for j := 0 to n do
  11. if (Matrixx[i][j] > Max) then
  12. begin
  13. Max := Matrixx[i][j];
  14. iMax := i;
  15. jMax := j;
  16. end;
  17. end;
  18. end;
Add Comment
Please, Sign In to add comment