Browse Source

add Vmultiplier2

main
fdai6887 2 years ago
parent
commit
f97846c532
  1. 5
      src/funktion.c
  2. 1
      src/funktion.h
  3. 5
      src/main.c

5
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;
}

1
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

5
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);
}
Loading…
Cancel
Save