Hi my fellow members. I am having trouble outputting the index of the largest number.Ive gotten to this point but, now I'm stuck. Any help is greatly appreciated. My code is
That is not going to work if you only pass negative numbers. I'd just initialize a variable with the first element then run a loop comparing it to the remaining elements and reassigning as needed.