Skip to content

Instantly share code, notes, and snippets.

@angelabauer
Created August 14, 2019 11:18
Show Gist options
  • Save angelabauer/365d4331da31fc78b863aa59a94593e1 to your computer and use it in GitHub Desktop.
Save angelabauer/365d4331da31fc78b863aa59a94593e1 to your computer and use it in GitHub Desktop.
var a = 5
var b = 8
//Create a new variable c to store the value in b (c = 8)
var c = b
//Change the value of b to equal the value of a (b = 5)
b = a
//Change the value of a to equal the value of c (a = 8)
a = c
print("The value of a is \(a)")
print("The value of b is \(b)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment