Friday, May 27, 2016

SOLUTION OF URI 1005


//      question of uri  1005 Average 1
//1005  (Mahmud_Jamil)  BRUR





#include <stdio.h>
int main()
{
    float a,b,c=3.5,d=7.5,e,MEDIA;
    scanf("%f %f",&a,&b);
    e=c+d;
    MEDIA=(a*c+b*d)/e;
    printf("MEDIA = %.5f\n",MEDIA);

    return 0;
}