Thursday, October 25, 2018

URI 1006 Solution in C | Average 2

//URI Online Judge 1006 Solution in C | Average 2

#include<stdio.h>

int main(){

   float A,B,C,med;

   scanf("%f %f %f",&A,&B,&C);

   med=((A*2)+(B*3)+(C*5))/(2+3+5);

   printf("MEDIA = %.1f\n",med);

   return 0;

}

//Happy_coding

No comments:

Post a Comment