Advertisement
Avdluna

URI 1005

May 17th, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5.     float x,y;
  6.     scanf("%f %f", &x, &y);
  7.     printf("MEDIA = %.5f\n", (x*3.5+y*7.5)/(3.5+7.5));
  8.  
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement