From a9cda3ff44d238c88e7705b561407e590855b304 Mon Sep 17 00:00:00 2001 From: fdai7514 Date: Mon, 6 Feb 2023 20:15:10 +0100 Subject: [PATCH] refactoring: change variable names and format code in calculatorDivide.c --- src/calculatorDivide.c | 11 ++++++++++- src/calculatorDivide.h | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/calculatorDivide.c b/src/calculatorDivide.c index c6abdcf..86e0a5c 100644 --- a/src/calculatorDivide.c +++ b/src/calculatorDivide.c @@ -1,2 +1,11 @@ #include "calculatorDivide.h" -float calculatorDivide(float x, float y){return x/y;} +// Note: +/* This Function may or may not be implemented in actual program, even if it is merged to the main branch. + If it is temporarily not included in the main Program, then this has a role in future Development of the Project */ + + +float calculatorDivide(float num1, float num2) +{ + return num1 / num2; +} + diff --git a/src/calculatorDivide.h b/src/calculatorDivide.h index e33d7ef..18c242e 100644 --- a/src/calculatorDivide.h +++ b/src/calculatorDivide.h @@ -2,7 +2,7 @@ #define CALCULATORDIVIDE_H #include #include -float calculatorDivide(float x, float y); +float calculatorDivide(float num1, float num2); #endif // CALCULATORDIVIDE_H