Uri solution 1006 Average 2

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

Comments

Popular posts from this blog

Uri Solution 2747 Output 1

Codeforces Solution 230B T-primes