Question: need help combing these 2 FOR loops into 1 loop. code/comments here 1:length (inputAr ray) % enter for i = inputArray(x) : end ascending y:

need help combing these 2 FOR loops into 1 loop.
code/comments here 1:length (inputAr ray) % enter for i = inputArray(x) : end ascending y: afor ilength (inputArray) [m (i),n]max (inputArray); inputArray (n) -: end descendingm: end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
