for int for int arrOne Length if arrOne max max arrOne maxIndex

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
for (int i = 0; i < 3;i++)
{
for (int j = i; j < arrOne.Length; j++)
{
if (arrOne[j] > max)
{
max = arrOne[j];
maxIndex=j;
}
}