pau-riquelme

Untitled

Oct 10th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.24 KB | None | 0 0
  1. func swapTwoInt( variableA: Int, variableB: Int) -> (Int,Int) {
  2.     var variableA = variableA
  3.     var variableB = variableB
  4.     let temporaryA = variableA
  5.     variableA = variableB
  6.     variableB = temporaryA
  7.     return (variableA,variableB)
  8. }
Advertisement
Add Comment
Please, Sign In to add comment