Browse Source

multiplication fibonacci fumktion added

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

4
src/multiplication.c

@ -191,6 +191,10 @@ int multiply_by_euler_prime(int num) {
return (num << 1) + (num << 2) - num; return (num << 1) + (num << 2) - num;
} }
int fibonacci_multiply(int num, int fib) {
return num * fib;
}

3
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_hex_numbers(int num1, int num2);
int multiply_exponentiation(int base, int exponent); int multiply_exponentiation(int base, int exponent);
int multiply_by_euler_prime(int num); int multiply_by_euler_prime(int num);
int fibonacci_multiply(int num, int fib);
#endif // MULTIPLICATION_H #endif // MULTIPLICATION_H

Loading…
Cancel
Save