Last active
July 12, 2020 13:37
-
-
Save codertcet111/e8060b273996278a246441d4e247a1f3 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
Function get_min_and_max (Array a[]){ | |
max, min = a[0] | |
for i in a { | |
if a[i] > max then | |
max = a[i] | |
if a[i] < min then | |
min = a[i] | |
} | |
return min, max | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment