Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double A,B,C,MEDIA;
- scanf("%lf%lf%lf",&A,&B,&C);
- MEDIA=(((A*2)+(B*3)+(C*5))/(2+3+5));
- printf("MEDIA = %.1lf\n",MEDIA);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement