Thursday, October 25, 2018

URI 1005 Solution in C | Average 1

//URI Online Judge 1005 Solution in C | Average 1

#include<stdio.h>

int main(){

   float A,B,med;

   scanf("%f %f",&A,&B);

   med=((A*3.5)+(B*7.5))/(3.5+7.5);

   printf("MEDIA = %.5f\n",med);

   return 0;

}

//Happy_coding

No comments:

Post a Comment