klasscho

Untitled

Nov 28th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 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. begin
  12. if (Matrixx[i][j] > Max) then
  13. begin
  14. Max := Matrixx[i][j];
  15. iMax := i;
  16. jMax := j;
  17. end;
  18. end;
  19. end;
  20. end;
Advertisement
Add Comment
Please, Sign In to add comment