Created
June 10, 2013 05:10
-
-
Save jesse1981/5746668 to your computer and use it in GitHub Desktop.
Number inverse
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
<?php | |
function inverse($num,$max) { | |
for ($i=0;$i<=$max;$i++) { | |
if ($num == ($max-$i)) return $i; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment