@ -333,4 +333,7 @@ double dreieckUmfangn(double a, double b, double c) {
}
double viereckFlaeche(double a, double b) {
return a * b;
double viereckUmfang(double a, double b){
return (2 * a) + (2 * b);
@ -58,5 +58,6 @@ 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);
double viereckUmfang(double a, double b);
#endif
@ -262,4 +262,9 @@ int main()
a = getValue('a');
b = getValue('b');
viereckFlaeche(a,b);
viereckUmfang(a,b);
printf("Der Umfang des Vierecks betraegt: %lf\n", (2 * a) + (2 * b));