Problem1701--函数-函数传址

1701: 函数-函数传址

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 180  Solved: 128
[Status] [Submit] [Creator:]

Description

通过以下方式,能够将a、b的地址传入,对a和b的修改能够真正影响函数外a和b的内容。

void swap(int &a, int &b)

{

  int tmp=a;

  a=b;

  b=tmp;

}
请使用以上函数,输入两个数字,交换两个数字的位置后输出。

Input

仅一行,两个正整数a和b。

Output

仅一行,a和b交换后的结果。

Sample Input Copy

3 8

Sample Output Copy

8 3

Source/Category

 提高A