Browse Source

multiplication left shift

remotes/origin/multiplication
fdai7930 11 months ago
parent
commit
53fce56ca7
  1. 3
      src/multiplication.c
  2. 2
      src/multiplication.h

3
src/multiplication.c

@ -14,6 +14,9 @@ int multiply_three_integers(int a, int b, int c) {
return a * b * c; return a * b * c;
} }
int multiply_left_shift(int a, int b) {
return a << b;
}

2
src/multiplication.h

@ -3,5 +3,7 @@
extern double multi(double ein1, double ein2); extern double multi(double ein1, double ein2);
double square(double x); double square(double x);
int multiply_three_integers(int a, int b, int c); int multiply_three_integers(int a, int b, int c);
int multiply_left_shift(int a, int b);
#endif // MULTIPLICATION_H #endif // MULTIPLICATION_H
Loading…
Cancel
Save