#include<iostream>
using namespace std;
void swap(int&x,int&y)
{
    int t=x;
    x=y;
    y=t;
}
int main()
{
    int a,b;
    cin>>a>>b;
    swap(a,b);
    cout<<a<<" "<<b<<endl;
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: