Browse Source

multiplication by ten

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

3
src/multiplication.c

@ -20,6 +20,9 @@ int multiply_left_shift(int a, int b) {
int multiply_right_shift(int a, int b) { int multiply_right_shift(int a, int b) {
return a >> b; return a >> b;
} }
int multiply_by_ten(int a) {
return a * 10;
}

2
src/multiplication.h

@ -5,6 +5,6 @@ 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); int multiply_left_shift(int a, int b);
int multiply_right_shift(int a, int b); int multiply_right_shift(int a, int b);
int multiply_by_ten(int a);
#endif // MULTIPLICATION_H #endif // MULTIPLICATION_H
Loading…
Cancel
Save