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