#include <stdio.h> float Max = 0, Min = 0; int main() { float average(float
array[], int n); float ave, score[10]; int i; for(i = 0; i < 10; i++)
scanf("%f",&score[i]); ave = average(score, 10); printf("max = %6.2f\nmin =
%6.2f\naverage = %6.2f\n", Max, Min, ave); return 0; } float average(float
array[], int n) { int i; float aver, sum = array[0]; Max = Min = array[0];
for(i = 1; i < n; i++) { if(array[i] > Max) Max = array[i]; else if(array[i] <
Min) Min = array[i]; sum = sum + array[i]; } aver = sum/n; return aver; }

技术
©2020 ioDraw All rights reserved
ES6数组去重的三个简单办法synchronized是公平锁还是非公平锁【Vue简易入门】父子组件传值智慧屏和智能穿戴开发:容器组件dialogpython--大一期末测试题(含答案)Java Spring Cloud 微服务架构图软件测试流程图VUE基础知识点整理【SpringBoot注解-4】:@Target、@Retention、@Documented注解简介【编写高质量代码:改善Java程序的151个建议】第1章:Java开发中通用的方法和准则___建议14~20