My task is to find min and max value in matrix and print that they are in the same row if they are in the same row and swap their rows if they are not equal. My program worked w