Advertisement
Guest User

1006

a guest
Oct 14th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     double A,B,C,MEDIA;
  5.     scanf("%lf%lf%lf",&A,&B,&C);
  6.     MEDIA=(((A*2)+(B*3)+(C*5))/(2+3+5));
  7.     printf("MEDIA = %.1lf\n",MEDIA);
  8.     return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement