文件名称:code
介绍说明--下载内容均来自于网络,请自行研究使用
1.定义函数input输入数组数据
2.定义函数average求数组平均数
3.定义函数count求高于平均数的数组元素个数
4.主函数调用这些函数完成如下功能(见运行结果):
enter array :8 7 6 5
平均数:6.50
高于平均数的个数:2
Press any key to continue-1. Define function input Enter the array data
2. Define the function average to find the array average
3. Defines the function count to count the number of array elements above the average
4. The main function calls these functions to accomplish the following functions (see running results):
Enter array: 8 7 6 5
Average: 6.50
Higher than the average number: 2
Press any key to continue
2.定义函数average求数组平均数
3.定义函数count求高于平均数的数组元素个数
4.主函数调用这些函数完成如下功能(见运行结果):
enter array :8 7 6 5
平均数:6.50
高于平均数的个数:2
Press any key to continue-1. Define function input Enter the array data
2. Define the function average to find the array average
3. Defines the function count to count the number of array elements above the average
4. The main function calls these functions to accomplish the following functions (see running results):
Enter array: 8 7 6 5
Average: 6.50
Higher than the average number: 2
Press any key to continue
(系统自动生成,下载前可以参看下载内容)
下载文件列表
code\code.doc
code