Skip to content

Instantly share code, notes, and snippets.

@FernandoVezzali
Created July 27, 2017 13:06
Show Gist options
  • Save FernandoVezzali/135f713a564868a99f18fba9854c833f to your computer and use it in GitHub Desktop.
Save FernandoVezzali/135f713a564868a99f18fba9854c833f to your computer and use it in GitHub Desktop.
UnitTestDemo
public static int Largest(int[] list)
{
int index, max = Int32.MaxValue;
for (index = 0; index < list.Length - 1; index++)
{
if (list[index] > max)
{
max = list[index];
}
}
return max;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment