2025-03-20 11:23:46 +08:00

13 lines
232 B
C

#include <stdio.h>
typedef struct score{
float medScore;
float endScore;
}score;
int main(){
score s;
scanf("%f %f", &s.medScore, &s.endScore);
printf("avg=%.2f\n", (s.medScore + s.endScore)/2);
return 0;
}