Horje
use a for loop to sum an array c# Code Example
use a for loop to sum an array c#
int[] arr = new int[] { 1, 2, 3 };
int sum = 0;
for (int i = 0; i < arr.Length; i++)
{
    sum += arr[i];
}

int[] arr = { 3, 6, 4, 1, 6, 8 };

// returns 1
Array.IndexOf(arr, 6);

int maxValue = anArray.Max();
int maxIndex = anArray.ToList().IndexOf(maxValue);




Csharp

Related
how to make play button in unity Code Example how to make play button in unity Code Example
palindrome number c# Code Example palindrome number c# Code Example
asp.net model Code Example asp.net model Code Example
c# loop string array Code Example c# loop string array Code Example
c# get last array element Code Example c# get last array element Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11