Cheat Sheet for Coding Challenges in Swift

Get the Last Integer of a number var lastInteger = 0 lastInteger = lastInteger * 10 + x % 10 Take out the Last Integer of a number x /= 10