Browse Source

add Vmultiplier3

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

5
src/funktion.c

@ -165,3 +165,8 @@ float Vmultiplier2(float x2,float m) {
double result = x2 * m;
return result;
}
float Vmultiplier3(float x3,float m) {
x3 = x3 * m;
printf("%f|)\n\n",x3);
return x3;
}

1
src/funktion.h

@ -33,5 +33,6 @@ float Vsubstract2(float x2, float z2);
float Vsubstract3(float x3, float z3);
float Vmultiplier(float x1,float m);
float Vmultiplier2(float x2,float m);
float Vmultiplier3(float x3,float m);
#endif

10
src/main.c

@ -139,5 +139,13 @@ int main()
x2 = getValue('X');
m = getValue('M');
Vmultiplier(x2, m);
Vmultiplier2(x2, m);
printf("z eingeben");
x3 = getValue('X');
printf("Vervielfachung\n\n");
printf("m eingeben");
m = getValue('M');
Vmultiplier3(x3, m);
}
Loading…
Cancel
Save