Problem1258--交换两个输入整数的值

1258: 交换两个输入整数的值

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 17  Solved: 10
[Submit] [Status] [Web Board] [Creator:]

Description

编写 swap函数,实现交换两个整数的功能。

从键盘读入两个整数,保存到 a 和 b内。在主函数中调用swap函数交换a和b的值,然后输出a和b的值。

提示:【C程序设计语言 第二版新版】 第81页有swap函数正确的实现

Sample Input

3 6

Sample Output

6 3

Source/Category