URI Online Judge | 1006 Average 2 - Samsus Salehin Sabbir

Header Ads

URI Online Judge | 1006 Average 2

Problem Link : 1006 Average 2

Solution :
      Develop by
 Samsus Salehin Sabbir 


  1. #include <stdio.h>

  2. int main(void) {
  3. // your code goes here
  4. float a,b,c;
  5. scanf("%f %f %f",&a,&b,&c);
  6. printf("MEDIA = %.1f\n",(a*2+b*3+c*5)/(2+3+5));
  7. return 0;
  8. }

No comments

Powered by Blogger.