Advertisement
MOHD_NASIR_UDDIN42

1006-Average 2-uri online judge.

Apr 21st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     float A,B,C,sum;
  5.     scanf("%f %f %f",&A, &B, &C);
  6.     sum=(A*2 + B*3 + C*5)/(2+3+5);
  7.     printf("MEDIA = %.01f\n",sum);
  8.     return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement