-->
当前位置:首页 > 题库

PROGRAMMING:The exchange of two numbers

Luz5年前 (2021-05-10)题库438
Input two integers randomly from the keyboard, use * * pointer * * as function parameters, and program to exchange them before re output.
###Function interface:
`void swap(int *x, int *y)`
###Input format:
Enter two integers from the keyboard.
###Output format:
Output the exchanged two integers in the form of output sample.
###Input example:
```in
11 22
```
###Output example:
```out
After swap:22 ,11
```







answer:If there is no answer, please comment