using System;
public class Program
{
public static void Main()
int[] nbrs = {1,3,7,6,4};
int index = 0;
int max = 0;
for(int i=0;i<nbrs.Length;i++){
for(int j=0;j<nbrs.Length;j++){
if(nbrs[i] < nbrs[j] && max < nbrs[j]){
max = nbrs[j];
index = j;
Console.WriteLine($"{max} and index is {index}");
}
Console.Write(max);
Console.Write(nbrs[0]);