Problem2003--2001年秋浙江省计算机等级考试二级C 编程题(2)

2003: 2001年秋浙江省计算机等级考试二级C 编程题(2)

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

Description

编制函数,其功能是在float类型一维数组中查找最大值、最小值,并将它们返回到调用程序。

* 输出保留两位小数

Input

n

n个浮点数

Output

最大值 最小值

Sample Input Copy

10
1.0
2.0
3.0
4.0
5.0
6.0
7.0
8.0
9.0
10.0

Sample Output Copy

10.00 1.00

Source/Category