diff --git a/src/funktion.c b/src/funktion.c index 95db86f..0689f64 100644 --- a/src/funktion.c +++ b/src/funktion.c @@ -141,3 +141,9 @@ float Vaddx2(float x2, float z2){ double result = x2 + z2; return result; } +float Vaddx3(float x3, float z3){ + float X3; + X3 = x3 + z3; + printf("(%f: \n",X3); + return X3; +} diff --git a/src/funktion.h b/src/funktion.h index 207dfd0..519e24a 100644 --- a/src/funktion.h +++ b/src/funktion.h @@ -27,5 +27,6 @@ float Vshift(float x1,float s1); double Vlength(float x1, float x2, float x3); float Vadd(float x1, float z1); float Vaddx2(float x2, float z2); +float Vaddx3(float x3, float z3); #endif diff --git a/src/main.c b/src/main.c index 10d5789..a55e3f5 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ int main() { - double a,b,c,d,h,x1,s1,x2,x3,z1,z2; + double a,b,c,d,h,x1,s1,x2,x3,z1,z2,z3; a = getValue('a'); b = getValue('b'); h = getValue('h'); @@ -116,4 +116,10 @@ int main() x2 = getValue('X'); z2 = getValue('z'); Vaddx2(x2,z2); + + printf("z eingeben"); + x3 = getValue('X'); + printf("c eingeben"); + z3 = getValue('z'); + Vaddx3(x3,z3); }