From cddb6fd0e024ef23fec95f560bc449d4d50bfcdb Mon Sep 17 00:00:00 2001 From: fdai7514 Date: Fri, 10 Feb 2023 21:38:43 +0100 Subject: [PATCH] refactoring: change variable names and format code in calculatorCube.c --- src/calculatorCube.c | 9 ++++++++- src/calculatorCube.h | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/calculatorCube.c b/src/calculatorCube.c index df7f99e..875f3b8 100644 --- a/src/calculatorCube.c +++ b/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; +} diff --git a/src/calculatorCube.h b/src/calculatorCube.h index d1e9e30..1ebdd6c 100644 --- a/src/calculatorCube.h +++ b/src/calculatorCube.h @@ -2,7 +2,7 @@ #define CALCULATORCUBE_H #include #include -float calculatorCube(float x); +float calculatorCube(float num); #endif // CALCULATORCUBE_H