C++ program to swap two numbers using a third variable.
In the above C++ Program to swap two numbers using third variable, we assign the value of first variable to the third variable and value of second variable to the first variable and then the value of third value is assigned to the first variable. Sample Output: Input 1st number : 56 Input 2nd number…