How to Swap two numbers without using the third variable in C#
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
C#
🤖 Code Explanation
The code swaps the values of two variables without using a third variable.
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
More problems solved in C#
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
The code swaps the values of two variables without using a third variable.
Download SpellBox today Download SpellBox for macOS, Windows and VS Code today. Solve any programming or engineering problem with A.I.