Accepted solution

URI 1006 solution

Open original problem
Source code

#Include <stdio.h>

int main()

{

     double A,B,C,avg;

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

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

     printf("MEDIA = %.1lf
",avg);

     return 0;

}
Join the discussion

Add your comment