Header Ads

Header ADS

Solution of URI 1006::Average 2

Before seeing the solution make sure that you have tried enough. Don’t copy the whole code, just find out the logic. If you feel any problemyou will inform me by comment.




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
















No comments

Theme images by konradlew. Powered by Blogger.