A
Arash_89
Guest
Hello,
In the below code I want to get index of the largest element in array. in this example I expected have 14.
Thanks in advance
using System;
using System.Linq;
namespace CSharp
{
class Class1
{
public static void Main()
{
int[] num = { 3,45,56,67,67,7,23,6,6,7,78,54,4,34,342};
Console.WriteLine(num.Max());
}
}
}
Continue reading...
In the below code I want to get index of the largest element in array. in this example I expected have 14.
Thanks in advance
using System;
using System.Linq;
namespace CSharp
{
class Class1
{
public static void Main()
{
int[] num = { 3,45,56,67,67,7,23,6,6,7,78,54,4,34,342};
Console.WriteLine(num.Max());
}
}
}
Continue reading...