I have written a program that reads in data from a file into a 5X6 array and then find the minimum and maximum values in the array. I also need to determine which row the minimum and maximum values are in. For example(3X3 array):
Row
1 2.1 4.5 2.3
2 1.1 0.5 5.0
3 2.4 4.4 6.4
0.5 is the smallest value and 6.4 is the largest value and the output needs to look like this:
Minimum = 0.5 in row2
Maximum = 6.4 in row 3
My program can read in the data and find the max and min values I just don't know how to have it read which row those values and could use some help on donig that.
thanks