-->
当前位置:首页 > 题库

PROGRAMMING:Achievement statistics

Luz5年前 (2021-05-10)题库404
```
//Calculate the total score, average score and the number of failed students of a group.
#include
struct stu{
int num;
char name[20];
char sex;
double score;
}s[5]={ {101,"Li ping" , 'M', 45},
{102,"Zhang ping", 'M',42.5},
{103,"He fang" , 'F',92.5},
{104,"Cheng ling", 'F', 87},
{105,"Wang ming" , 'M', 58}
};
void ave(struct stu *ps){
//Add your code
}
int main(){
ave(s);
}
Execute program, output:
325.00 65.00 3
```
###Input example:
```in
```
###Output example:
```out
325.00 65.00 3
```







answer:If there is no answer, please comment