Beecrowd Solution of 1005

 

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;
}  

Post a Comment

Previous Post Next Post