Input
Output
#include <iostream> using namespace std; int main() { int x= 4, y= 6, t; cout << "Enter two numbers: "<< x << y << endl; cout << "Before interchange(swapping) the numbers x= " << x << " y= " << y << endl; t = x; x = y; y = t; cout << "After interchange(swapping) the numbers x= " << x << " y= " << y << endl; return 0; }