Friday, May 27, 2016

SOLUTION OF URI 1006


   question of  uri 1006  Average 2
//1006  (Mahmud_Jamil)  BRUR




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

    return 0;
}