Browse Source

double square

remotes/origin/multiplication
fdai7930 11 months ago
parent
commit
c64fbf526b
  1. 6
      src/multiplication.c
  2. 2
      src/multiplication.h

6
src/multiplication.c

@ -6,6 +6,12 @@ double multi( double ein1, double ein2) {
return (ein1 * ein2); return (ein1 * ein2);
} }
double square(double x) {
return x * x;
}

2
src/multiplication.h

@ -1,4 +1,6 @@
#ifndef MULTIPLICATION_H #ifndef MULTIPLICATION_H
#define MULTIPLICATION_H #define MULTIPLICATION_H
extern double multi(double ein1, double ein2); extern double multi(double ein1, double ein2);
double square(double x);
#endif // MULTIPLICATION_H #endif // MULTIPLICATION_H
Loading…
Cancel
Save