Last active
July 1, 2024 06:31
-
-
Save TheMuellenator/69efa8bb847c58c6bc01a82d3f30fd34 to your computer and use it in GitHub Desktop.
iOS repl.it - Variables Challenge Solution
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
var a = 5 | |
var b = 8 | |
var c = a | |
a = b | |
b = c | |
print("a: \(a)") | |
print("b: \(b)") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var a = 5
var b = 7
a = a + b // 12
b = a - b // 12 - 7 = 5
a = a - b // 12 - 5 = 7
print("a: (a)")
print("b: (b)")