diff --git a/src/funktion.c b/src/funktion.c index 75b50e2..34eb7e6 100644 --- a/src/funktion.c +++ b/src/funktion.c @@ -149,3 +149,7 @@ float Vsubstract(float x1, float z1) { double result = x1 - z1; return result; } +float Vsubstract2(float x2, float z2) { + double result = x2 - z2; + return result; +} diff --git a/src/funktion.h b/src/funktion.h index 6cda55b..28391b8 100644 --- a/src/funktion.h +++ b/src/funktion.h @@ -29,5 +29,6 @@ float Vadd(float x1, float z1); float Vaddx2(float x2, float z2); float Vaddx3(float x3, float z3); float Vsubstract(float x1, float z1); +float Vsubstract2(float x2, float z2); #endif diff --git a/src/main.c b/src/main.c index 4ad9296..a8e8a0d 100644 --- a/src/main.c +++ b/src/main.c @@ -124,4 +124,10 @@ int main() x1 = getValue('x'); z1 = getValue('z'); Vsubstract(x1, z1); + + printf("y eingeben "); + x2 = getValue('X'); + printf("b eingeben"); + z2 = getValue('z'); + Vsubstract2(x2, z2); }