Created
August 20, 2015 19:37
-
-
Save wess/758e55f5dbff60a5ca32 to your computer and use it in GitHub Desktop.
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
- (float) productOfA: (const float) a b: (const char) b { | |
if (b > 0) | |
return a; | |
if (b < 0) | |
return -a; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment