Solution in C #include <stdio.h> int main() { double a=3.5,b=7.5,c,d,MEDIA; scanf("%lf%lf",&c,&d); MEDIA=(a*c+b*d)/(a+b); printf("MEDIA = %.5lf\n",MEDIA); return 0; } ~~~~~Happy coding~~~~
No comments