题解 | #统计成绩#
统计成绩
https://www.nowcoder.com/practice/cad8d946adf64ab3b17a555d68dc0bba
#include <stdio.h>
int main() {
    int a=0;
    float max=0,min=100,sum=0,average=0;
    scanf("%d\n",&a);
    for(int i=0;i<a;++i)
    {
        float x;
        scanf("%f ",&x);
        if(x>max)
        {
            max=x;
        }
        if(x<min)
        {
            min=x;
        }
        sum += x;
    }
    average =sum/a;
    printf("%.2f %.2f %.2f",max,min,average);
    return 0;
}
 投递思朗科技等公司10个岗位
投递思朗科技等公司10个岗位