A general method for your kind of task:



Declare two int variables: lowest and lowestIndx

Initialize the value of lowestIndex to 0
Initialize the value of lowest to the value from element 0...