C++ program to swap two variables without using a third variable.
In the above C++ program to swap two numbers without using a third variable, we have used arithmetic logic to get the desired result. Sample Output: Input first number : 45 Input second number : 76 After swapping the first number is : 76 After swapping the second number is : 45