Browse Source

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

remotes/origin/feature/calculator-square
fdai7514 2 years ago
parent
commit
350eeafbe6
  1. 6
      src/calculatorSquare.c
  2. 2
      src/calculatorSquare.h

6
src/calculatorSquare.c

@ -1,2 +1,6 @@
#include "calculatorSquare.h" #include "calculatorSquare.h"
float calculatorSquare(float x){return x*x;}
float calculatorSquare(float num)
{
return num*num;
}

2
src/calculatorSquare.h

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