DEV Community

Discussion on: How can you swap two variables without using a third?

Collapse
 
kodejuice profile image
Sochima Biereagu • Edited
x = y + x - (y = x)
Enter fullscreen mode Exit fullscreen mode