Answers for "find the highest number in a list c#"

C#
2

c# find largest number in list

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
Posted by: Guest on March-05-2021
1

how to find the max number in list c#

int max = MyList.Max();
Posted by: Guest on October-01-2021

Code answers related to "find the highest number in a list c#"

C# Answers by Framework

Browse Popular Code Answers by Language