Swapping two values

Description:

Write a program to swap the values of two variables. Test Case 1 Input (stdin) 5 2 Expected Output 2 5 Test Case 2 Input (stdin) 9 6 Expected Output 6 9

Program :

#include <iostream>

using namespace std;

int main()

{

   int a,b,c,d;

  cin>>a;

  cin>>b;

  c=b;

  d=a;

  cout<<c<<" ";

  cout<<d;

return 0;

}