C语言10.16

Time Limit: 1000ms
Memory Limit: 32768KB
64-bit integer IO format: %lld      Java class name: Main

Description

输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。要求用3个函数实现,分别为输入10个数、进行处理、输出10个数。要求使用指针的方法进行处理。

Input

用空格隔开的10个整数。

Output

输出进行题目描述操作之后的10个整数,每个整数之后输出一个空格。
请注意行尾输出换行。

Sample Input

1 5 2 4 9 0 3 8 7 6

Sample Output

0 5 2 4 6 1 3 8 7 9 

Author

Admin
Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .