diff --git a/src/multiplication.c b/src/multiplication.c index 58f1e8e..bf381f4 100644 --- a/src/multiplication.c +++ b/src/multiplication.c @@ -20,6 +20,9 @@ int multiply_left_shift(int a, int b) { int multiply_right_shift(int a, int b) { return a >> b; } +int multiply_by_ten(int a) { + return a * 10; +} diff --git a/src/multiplication.h b/src/multiplication.h index 0a77b5a..5d0b41c 100644 --- a/src/multiplication.h +++ b/src/multiplication.h @@ -5,6 +5,6 @@ double square(double x); int multiply_three_integers(int a, int b, int c); int multiply_left_shift(int a, int b); int multiply_right_shift(int a, int b); - +int multiply_by_ten(int a); #endif // MULTIPLICATION_H