URI 1006

Solution of URI 1006 >>Average 2

  1. #include < stdio.h >
  2.  
  3. int main() {
  4.  
  5. double A, B, C, MEDIA;
  6. scanf("%lf%lf%lf", &A, &B, &C);
  7. MEDIA = ( ( A * 2 ) + ( B * 3 ) + ( C * 5 ) ) / 10;
  8. printf("MEDIA = %.1lf\n", MEDIA);
  9.  
  10. return 0;
  11. }

Comments

Popular posts from this blog

URI 2994 Solution

URI 2996 Solution