Skip to content

Instantly share code, notes, and snippets.

@yvettecook
Created May 21, 2016 21:15
Show Gist options
  • Save yvettecook/5204a6e15e7ba506a009125eba9f4b0c to your computer and use it in GitHub Desktop.
Save yvettecook/5204a6e15e7ba506a009125eba9f4b0c to your computer and use it in GitHub Desktop.
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