Browse Source

refactoring: change variable names and format code in calculatorDivide.c

remotes/origin/feature/calculator-divide
fdai7514 2 years ago
parent
commit
a9cda3ff44
  1. 11
      src/calculatorDivide.c
  2. 2
      src/calculatorDivide.h

11
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;
}

2
src/calculatorDivide.h

@ -2,7 +2,7 @@
#define CALCULATORDIVIDE_H
#include <stdio.h>
#include <stdlib.h>
float calculatorDivide(float x, float y);
float calculatorDivide(float num1, float num2);
#endif // CALCULATORDIVIDE_H
Loading…
Cancel
Save