#include
int main(){
float a,b,c,result;
scanf("%f %f %f",&a,&b,&c);
result=((a*2)+(b*3)+(c*5))/(2+3+5);
printf("MEDIA = %.1f\n",result);
return 0;
}
int main(){
float a,b,c,result;
scanf("%f %f %f",&a,&b,&c);
result=((a*2)+(b*3)+(c*5))/(2+3+5);
printf("MEDIA = %.1f\n",result);
return 0;
}
No comments:
Post a Comment