Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func swapTwoInt( variableA: Int, variableB: Int) -> (Int,Int) {
- var variableA = variableA
- var variableB = variableB
- let temporaryA = variableA
- variableA = variableB
- variableB = temporaryA
- return (variableA,variableB)
- }
Advertisement
Add Comment
Please, Sign In to add comment