山东理工ACM 1115 C语言实验——交换两个整数的值(顺序结构)两种方法
Time Limit: 1000 ms Memory Limit: 65536 KiB |
Problem Description
交换两个变量的值,由终端输入两个整数给变量x、y,然后交换x和y的值后,输出x和y。
Input
从键盘输入两个整数变量x和y;
Output
在交换x、y的值后将x和y输出!
Sample Input
4 6
Sample Output
6 4
Hint
Source
AC代码
方法一
#include <stdio.h>
int main