TOPIC

1012 em C - 10% Wrong

Cesar Vinicius asked 7 months ago

Olá poderiam me ajudar a identificar o erro por favor???

double A; double B; double C;

double pi = 3.15149;

double total1; double total2; double total3; double total4; double total5;

scanf("%lf %lf %lf", &A, &B, &C);

total1 = AC; total2 = piCC; total3 = C(A+B)/2; total4 = BB; total5 = AB;

printf("TRIANGULO : %0.3lf\n", total1); printf("CIRCULO : %0.3lf\n", total2); printf("TRAPEZIO : %0.3lf\n", total3); printf("QUADRADO : %0.3lf\n", total4); printf("RETANGULO : %0.3lf\n", total5);

grato pela atenção

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

  • Paula Contini Susin replied 7 months ago

    voce esqueceu de dividir por dois o AC, da area do triangulo retangulo