Created
September 16, 2011 19:01
-
-
Save ramonmaruko/1222833 to your computer and use it in GitHub Desktop.
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 int GetMaxValue(Array numbers) { | |
max = numbers[0]; | |
foreach(int number in numbers) { | |
if(number > max) max = number; | |
} | |
} | |
public int GetMinValue(Array numbers) { | |
min = numbers[0]; | |
foreach(int number in numbers) { | |
if(number < min) min = number; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment