//程序1-6 三位数反转(1)
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
cout<<n%10<<n/10%10<<n/100<<endl;
return 0;
}
//三位数反转(2)
#include<iostream>
using namespace std;
int main()
{
int n,m;
cin>>n;
m=(n%10)*100+(n/10%10)*10+(n/100);
cout<<m<<endl;
return 0;
}
//程序1-8 变量交换(1)
#include<iostream>
using namespace std;
int main()
{
int a,b,t;
cin>>a>>b;
t=a;
a=b;
b=t;
cout<<a<<" "<<b<<endl;
return 0;
}
//变量交换(2)
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
a=a+b;
b=a-b;
a=a-b;
cout<<a<<" "<<b<<endl;
retur
}
//变量交换(3)
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<b<<a<<endl;
return 0;
}