diff --git a/exo2/main.c b/exo2/main.c index 140dabe..d42bb90 100644 --- a/exo2/main.c +++ b/exo2/main.c @@ -212,7 +212,7 @@ float surfacePentagoneRegulier(float cote) { return (5.0 / 4.0) * cote * cote * (1.0 / tan(PI / 5.0)); } -int surfaceHexagoneRegulier(float cote) { // Erreur de type 5: retourne int au lieu de float +int surfaceHexagoneRegulier(float cote) { // Formule: (3√3/2) * cote² return (3.0 * sqrt(3.0) / 2.0) * cote * cote; } \ No newline at end of file