Browse Source

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

remotes/origin/feature/calculator-cube
fdai7514 2 years ago
parent
commit
cddb6fd0e0
  1. 9
      src/calculatorCube.c
  2. 2
      src/calculatorCube.h

9
src/calculatorCube.c

@ -1,2 +1,9 @@
#include "calculatorCube.h"
float calculatorCube(float x){return x*x*x;}
// 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 calculatorCube(float num)
{
return num*num*num;
}

2
src/calculatorCube.h

@ -2,7 +2,7 @@
#define CALCULATORCUBE_H
#include<stdio.h>
#include<stdlib.h>
float calculatorCube(float x);
float calculatorCube(float num);
#endif // CALCULATORCUBE_H
Loading…
Cancel
Save