Advertisement
MOHD_NASIR_UDDIN42

1005-Average 1-uri online judge.

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