Write a program to swap value of two variables without using third variable Test Case 1 Input (stdin) 5 3 Expected Output 3 5 Test Case 2 Input (stdin) 7 3 Expected Output 3 7
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<b<<" "<<a;
return 0;
}