largest element in array in csharp
Code Example - largest element in array in csharp
12
12
12
12
find largest number in array csharp
int biggest = list[0];//list refer to your list's name
for(int i = 1;i < list.Count;++i)
{
if(list[i] > biggest)
{
biggest = list[i];
}
}
//now biggest will be the biggest number of the list