@ -330,4 +330,7 @@ double dreieckFlaeche(double a, double b, double c) {
}
double dreieckUmfangn(double a, double b, double c) {
return a + b + c;
double viereckFlaeche(double a, double b) {
return a * b;
@ -57,5 +57,6 @@ double kreisFlaeche(double r);
double kreisUmfang(double r);
double dreieckFlaeche(double a, double b, double c);
double dreieckUmfangn(double a, double b, double c);
double viereckFlaeche(double a, double b);
#endif
@ -258,4 +258,9 @@ int main()
b = getValue('b');
c = getValue('c');
dreieckUmfangn(a,b,c);
a = getValue('a');
viereckFlaeche(a,b);
printf("Der Flaecheninhalt des Vierecks betraegt: %lf\n", a * b);