@ -337,3 +337,6 @@ double viereckFlaeche(double a, double b) {
double viereckUmfang(double a, double b){
return (2 * a) + (2 * b);
}
double trapezUmfang(double a, double b, double h) {
return (2 * h) + a + b;
@ -59,5 +59,6 @@ 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);
double trapezUmfang(double a, double b, double h);
#endif
@ -266,4 +266,10 @@ int main()
a = getValue('a');
b = getValue('b');
viereckUmfang(a,b);
h = getValue('h');
trapezUmfang(a,b,h);
printf("Der Umfang des Trapezes betraegt: %lf\n", (2 * h) + a + b);