0
how to find max or min number in two dimensional array ?.
.
5 Answers
+ 4
store the fisrt number in a variable ,then Loop through the array comparing that stored value with each value of array ,to find maximum see if the stored value is less than rest of the values in array if yes exchange them ,for minimum check if stored value is greater than rest of values in array,if yes exchange
+ 4
If you know basics of cpp,it isn't difficult ,you should show your attempt first ,so we can help you further
0
Can show me in coding please? Abhay
0
Thanks bro Vadi velan
0
Use swapping to get max or min simply after moving through array.