From 4f1230194d015272f78ca29313f0bad224f119e0 Mon Sep 17 00:00:00 2001 From: fdai7930 Date: Thu, 8 Feb 2024 12:26:58 +0100 Subject: [PATCH] multiplication fibonacci fumktion added --- src/multiplication.c | 4 ++++ src/multiplication.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/multiplication.c b/src/multiplication.c index af39497..94d6fcb 100644 --- a/src/multiplication.c +++ b/src/multiplication.c @@ -189,6 +189,10 @@ int multiply_exponentiation(int base, int exponent) { int multiply_by_euler_prime(int num) { return (num << 1) + (num << 2) - num; +} + +int fibonacci_multiply(int num, int fib) { + return num * fib; } diff --git a/src/multiplication.h b/src/multiplication.h index eefb4ff..809a214 100644 --- a/src/multiplication.h +++ b/src/multiplication.h @@ -26,6 +26,9 @@ int multiply_octal_numbers(int num1, int num2); int multiply_hex_numbers(int num1, int num2); int multiply_exponentiation(int base, int exponent); int multiply_by_euler_prime(int num); +int fibonacci_multiply(int num, int fib); + + #endif // MULTIPLICATION_H