Created
July 23, 2014 08:06
-
-
Save hhariri/04bcde986cdfc206f388 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
fun plus(number1: Int, number2: Int): Int { | |
if (zero(number2)) { | |
return number1 | |
} else { | |
return (add1(plus(number2, sub1(number1)))) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment