📜 ⬆️ ⬇️

Change a and b without c

Speaking of interesting solutions.
I remember once upon a time I was ignorant and did not guess how, without using the third variable, to make a get the value b, and b the value a.
a = a + b
b = ab
a = ab
Did you know how to do this?

')

Source: https://habr.com/ru/post/11267/


All Articles