Start
A = 9B = 5A = A + B
Then
A is 14B is 5B = A - B
Then
A is 14B is 9A = A - B
Result:
A(5) is now B
B(9) is now A
Not really simpler then just using a third variable but i works!
Start
A = 9B = 5A = A + B
Then
A is 14B is 5B = A - B
Then
A is 14B is 9A = A - B
Result:
A(5) is now B
B(9) is now A
Not really simpler then just using a third variable but i works!