diff --git a/src/multiplication.c b/src/multiplication.c index 15884c2..6a3c5a3 100644 --- a/src/multiplication.c +++ b/src/multiplication.c @@ -205,7 +205,12 @@ int repeated_division_multiply(int num1, int num2) { num2 <<= 1; } return result; -} +} + +int bernoulli_multiply(int num, int bernoulli) { + return num * bernoulli; +} + diff --git a/src/multiplication.h b/src/multiplication.h index 1d81954..97be960 100644 --- a/src/multiplication.h +++ b/src/multiplication.h @@ -28,6 +28,8 @@ int multiply_exponentiation(int base, int exponent); int multiply_by_euler_prime(int num); int fibonacci_multiply(int num, int fib); int repeated_division_multiply(int num1, int num2); +int bernoulli_multiply(int num, int bernoulli); +