Last active
July 9, 2018 13:52
-
-
Save Eeyore741/f55c11a1e9271d8b2adc78ea3f9deeee 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
private func pineapplesCountForEnglish(count: UInt) -> String{ | |
if count==0 { | |
return "John has no pineapples"; | |
} | |
else | |
if (count > 1) { | |
return String.init(format: "John has %u pineapples", count) | |
} | |
return String.init(format: "John has %u pineapple", count) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment