Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to find the biggest number in c#

public double FindBiggest(List<double> numbers)
{
	int biggest = numbers[0];
  	for (int i = 1; i < numbers.Count; i++)
    {
      	if(biggest < numbers[i])
          biggest = numbers[i];
    }
  	return biggest;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: reference a class by string unity 
Csharp :: KeyValuePair is default 
Csharp :: c# trimend substring 
Csharp :: unity c# image invisible 
Csharp :: how to edit .csproj file 
Csharp :: C# get filebase name 
Csharp :: c# ip address to string 
Csharp :: lwjgl fullscreen 
Csharp :: c# convert securestring to string 
Csharp :: disable version header c# 
Csharp :: c# decimal to fixed 2 
Csharp :: c# reflection get property value array 
Csharp :: unity normalize movement 
Csharp :: scaffold db 
Csharp :: unity find deactivated gameobject 
Csharp :: ef core many to many fluent api 
Csharp :: c# mysql select into datatable 
Csharp :: elasticsearch nested aggregation in c# 
Csharp :: c# 2d arrays 
Csharp :: c# exception middleware 
Csharp :: C# long 
Csharp :: how to lerp a value in unity 
Csharp :: dateTime first/last 
Csharp :: jtoken toobject is not exact double 
Csharp :: unity get quaternion z 
Csharp :: c# get program version 
Csharp :: c# winform get access token facebook 
Csharp :: how to change the color of a textbox with button c# 
Csharp :: how to if button pressed do something in c# 
Csharp :: Unity how get Attributes of a gameObject 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =