Created
May 21, 2016 21:15
-
-
Save yvettecook/5204a6e15e7ba506a009125eba9f4b0c 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
class Calculator { | |
func isDivisibleByThree(number: Int) -> Bool { | |
return number % 3 == 0 | |
} | |
func isDivisibleByFive(number: Int) -> Bool { | |
return number % 5 == 0 | |
} | |
func isDivisibleByFifteen(number: Int) -> Bool { | |
return number % 15 == 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment