TOPIC

100% error

Kazi Tajnur Islam asked 3 years ago

include

int main() {

float A, B, C, MEDIA;

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

MEDIA = ((A+B+C)/2);

printf("MEDIA = %0.1f\n", MEDIA);

return 0;

}

Remember not post solutions. Your post may be reviewed by our moderators.

  • FireJoker replied 3 years ago

    MEDIA = (0.2A)+(0.3B)+(0.5*C);