TOPIC

Presentation error

Hiago asked 2 years ago

include

int main() { double a; double b; double c; double x;

scanf("%lf",&a);
scanf("%lf",&b);
scanf("%lf",&c);
x=(a*2+b*3+c*5)/(2+3+5);
printf("MEDIA = %.1lf \n",x);

return 0;

}

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

  • Lucas Pires replied 2 years ago

    Esqueceu do fim de linha.