10 Answers
+ 12
b=a+b-(a=b)
+ 6
Nice but you should post it on your Post Feed.
+ 4
Cool
Unfortunately you code contains undefined behavior and could provide wrong results with other compilers.
For example a+=b-(b=a) doesn't work while a+=(b)-(b=a) works in playground.
+ 3
[b, a] = [a , b]
+ 2
a,b=b,a
+ 1
a=a+b
b=a-b
a=a-b
0
b=a+b(a=b)
0
Nahom you forgot the minus sign.
0
b=a+(a=b)*0
Could it work?