Solution in C #include <stdio.h> int main() { float a=2,b=3,c=5,e,f,g,MEDIA; scanf("%f%f%f",&e,&f,&g); MEDIA=(a*e+b*f+c*g)/10; printf("MEDIA = %.1f\n",MEDIA); return 0; } ~~~~~Happy coding~~~~
No comments