URI Online Judge | 1005 Average 1 - Samsus Salehin Sabbir

Header Ads

URI Online Judge | 1005 Average 1

Problem Link : 1005 Average 1

Solution :
      Develop by
 Samsus Salehin Sabbir 


  1. #include <stdio.h>

  2. int main(void) {
  3. double a,b,MEDIA;
  4. scanf("%lf %lf",&a,&b);
  5. MEDIA=(a*3.5+b*7.5)/(3.5+7.5);
  6. printf("MEDIA = %.5lf\n",MEDIA);
  7. return 0;
  8. }

No comments

Powered by Blogger.