Browse Source

refactoring: remove multi_by_sum fonction

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

4
src/multiplication.c

@ -45,9 +45,7 @@ int multi_string(const char* str, int factor) {
return result; return result;
} }
int multi_by_sum(int num1, int num2) {
return num1 * (num2 + 1);
}
int multi_using_two_comp(int num2, int num3) { int multi_using_two_comp(int num2, int num3) {
int result = 0; int result = 0;

2
src/multiplication.h

@ -9,7 +9,7 @@ int multi_by_five(int a);
float multi_by_percentage(float num, float percentage); float multi_by_percentage(float num, float percentage);
int multi_by_random(int num); int multi_by_random(int num);
int multi_string(const char* str, int factor); int multi_string(const char* str, int factor);
int multi_by_sum(int num1, int num2);
int multi_using_two_comp(int num2, int num3); int multi_using_two_comp(int num2, int num3);
int multi_by_even(int num, int factor); int multi_by_even(int num, int factor);
int multi_using_lookup_table(int num1, int num2); int multi_using_lookup_table(int num1, int num2);

Loading…
Cancel
Save