diff --git a/src/funktion.c b/src/funktion.c index bd5f2a7..45da505 100644 --- a/src/funktion.c +++ b/src/funktion.c @@ -161,3 +161,8 @@ float Vmultiplier(float x1,float m) { double result = x1 * m; return result; } +float Vmultiplier2(float x2,float m) { + x2 = x2 * m; + printf("|%f|",x2); + return x2; +} diff --git a/src/funktion.h b/src/funktion.h index 8ec588e..4554e21 100644 --- a/src/funktion.h +++ b/src/funktion.h @@ -32,5 +32,6 @@ float Vsubstract(float x1, float z1); float Vsubstract2(float x2, float z2); float Vsubstract3(float x3, float z3); float Vmultiplier(float x1,float m); +float Vmultiplier2(float x2,float m); #endif diff --git a/src/main.c b/src/main.c index 8dbd768..04e3a86 100644 --- a/src/main.c +++ b/src/main.c @@ -136,4 +136,9 @@ int main() x1 = getValue('X'); m = getValue('M'); Vmultiplier(x1, m); + + printf("y eingeben "); + x2 = getValue('X'); + m = getValue('M'); + Vmultiplier(x2, m); }