diff --git a/src/calculatorSquare.c b/src/calculatorSquare.c index bca42f6..a58fe24 100644 --- a/src/calculatorSquare.c +++ b/src/calculatorSquare.c @@ -1,2 +1,6 @@ #include "calculatorSquare.h" -float calculatorSquare(float x){return x*x;} + +float calculatorSquare(float num) +{ + return num*num; +} diff --git a/src/calculatorSquare.h b/src/calculatorSquare.h index bbc1bb5..7f0efea 100644 --- a/src/calculatorSquare.h +++ b/src/calculatorSquare.h @@ -2,7 +2,7 @@ #define CALCULATORSQUARE_H #include #include -float calculatorSquare(float x); +float calculatorSquare(float num); #endif // CALCULATORSQUARE_H