Created
July 27, 2017 13:06
-
-
Save FernandoVezzali/135f713a564868a99f18fba9854c833f to your computer and use it in GitHub Desktop.
UnitTestDemo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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