Browse Source

refactoring: dreieckFlaeche

main
Fdai7396 2 years ago
parent
commit
9a6b8607dd
  1. 2
      src/main.c

2
src/main.c

@ -253,6 +253,4 @@ int main()
b = getValue('b'); b = getValue('b');
c = getValue('c'); c = getValue('c');
dreieckFlaeche(a,b,c); dreieckFlaeche(a,b,c);
double s = (a + b + c) / 2;
printf("Die Flaeche des Dreiecks betraegt: %f\n", sqrt(s * (s - a) * (s - b) * (s - c)));
} }
Loading…
Cancel
Save