First try it yourself
#include <stdio.h>
int main() {
double A, B, MEDIA;
scanf("%lf %lf", &A, &B);
MEDIA = (A * 3.5 + B * 7.5) / (3.5 + 7.5);
printf("MEDIA = %.5lf\n", MEDIA);
return 0;
}
Tags:
Beecrowd