1005 - Average 1




Problem Link


A Solution in c

#include<stdio.h>
int main()
{
    float A, B, MEDIA;
    scanf("%f %f", &A, &B);
    MEDIA =(A *3.5)+(B*7.5)/(3.5+7.5);
    printf("MEDIA = %.5f\n", MEDIA);
    return 0;
}





No comments

Theme images by Jason Morrow. Powered by Blogger.