<img src="https://img-blog.csdn.net/20150411122637615?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvWXVTb25nNDg2OQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />#include<iostream>
using namespace std;
void swap(int &a,int &b)
{
int temp;
if(a<b)
{
temp=a;
a=b;
b=temp;
}
}
int main()
{
int i,j;
cin>>i>>j;
swap(i,j);
cout<<i<<" "<<j<<endl;
return 0;
}
P35 8
最新推荐文章于 2020-11-17 15:54:57 发布