Write a program to swap two numbers in C++

C++ program to swap two numbers using a temporary variable:https://www.highrevenuegate.com/thv230z41?key=45186ab3250d84bc139c728d674b7281 C++ a program to swap two numbers in C++ The first step is to define two variables, x and y. We then assign the value 10 to x and the…