So I wrote a program to find the min and max value from a set of input data[i][j]. The problem is I need to know what row and column they are in, but I only am given the actual value which is determined at the last iteration of the loop. I've been looking online to find a way to identify the very last set of values for [i][j] at the end of the for loop or just a way of identifying the row/column when you just know the value from the data set. I would really appreciate any help with this.
I'm trying to find the row/column values for mn and mx in the code below.