@ -328,3 +328,6 @@ double dreieckFlaeche(double a, double b, double c) {
double s = (a + b + c) / 2;
return sqrt(s * (s - a) * (s - b) * (s - c));
}
double dreieckUmfangn(double a, double b, double c) {
return a + b + c;
@ -56,5 +56,6 @@ double grundwert(double ein, double prozent);
double kreisFlaeche(double r);
double kreisUmfang(double r);
double dreieckFlaeche(double a, double b, double c);
double dreieckUmfangn(double a, double b, double c);
#endif
@ -253,4 +253,10 @@ int main()
b = getValue('b');
c = getValue('c');
dreieckFlaeche(a,b,c);
a = getValue('a');
dreieckUmfangn(a,b,c);
printf("Der Umfang des Dreiecks betraegt: %f\n", a + b + c);