Browse Source

Refactoring: replaced multiplication with multi in mltiplication repetition function

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

2
src/multiplication.c

@ -236,7 +236,7 @@ int karatsu_multi(int num1, int num2) {
} }
int multiplication_repetition(int a, int n) {
int multi_repetition(int a, int n) {
int resultat = 0; int resultat = 0;
for (int i = 0; i < n; i++) { for (int i = 0; i < n; i++) {
resultat += a; resultat += a;

2
src/multiplication.h

@ -31,7 +31,7 @@ int bernoulli_multi(int num, int bernoulli);
float power_multi(float base, int exponent); float power_multi(float base, int exponent);
int bitwisee_multi(int num1, int num2); int bitwisee_multi(int num1, int num2);
int karatsu_multi(int num1, int num2); int karatsu_multi(int num1, int num2);
int multiplication_repetition(int a, int n);
int multi_repetition(int a, int n);

Loading…
Cancel
Save