Created
September 28, 2021 00:28
-
-
Save rlapz/c9e4a9822fce6f016c4d1a769664d2b0 to your computer and use it in GitHub Desktop.
Finding the biggest number
This file contains hidden or 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
int | |
max(int a, int b, int c, int d) | |
{ | |
int tmp1, tmp2; | |
tmp1 = (a > b) ? a : b; | |
tmp2 = (c > d) ? c : d; | |
return (tmp1 > tmp2) ? tmp1 : tmp2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment