URI Online Judge [ 1005 ] Average 1 Question & Solution

1005

 

Solution In C :-

#include<stdio.h>

int main(){
float A,B,m;
scanf(“%f%f”,&A,&B);
m=((A*3.5)+(B*7.5))/(3.5+7.5);
printf(“MEDIA = %.5f\n”,m);
return 0;

}

Find out more solution in our site :

tarunno71

If you like this post please must share with other people
Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Pin on Pinterest
Pinterest
0Share on LinkedIn
Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *