diff --git a/src/multiplication.c b/src/multiplication.c index 4a8bd61..267c6ea 100644 --- a/src/multiplication.c +++ b/src/multiplication.c @@ -45,9 +45,7 @@ int multi_string(const char* str, int factor) { return result; } -int multi_by_sum(int num1, int num2) { - return num1 * (num2 + 1); -} + int multi_using_two_comp(int num2, int num3) { int result = 0; diff --git a/src/multiplication.h b/src/multiplication.h index 405c98c..42a90b6 100644 --- a/src/multiplication.h +++ b/src/multiplication.h @@ -9,7 +9,7 @@ int multi_by_five(int a); float multi_by_percentage(float num, float percentage); int multi_by_random(int num); 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_by_even(int num, int factor); int multi_using_lookup_table(int num1, int num2);