forked from newde/homework
23 lines
227 B
C++
23 lines
227 B
C++
#include<iostream>
|
|
using namespace std;
|
|
|
|
void myswap(int &i,int &j){
|
|
int x;
|
|
x=i;
|
|
i=j;
|
|
j=x;
|
|
}
|
|
|
|
int main(){
|
|
|
|
int a,b,c;
|
|
|
|
cin>>a>>b;
|
|
|
|
myswap(a,b);
|
|
|
|
cout<<a<<" "<<b<<endl;
|
|
|
|
return 0;
|
|
}
|