11 lines
105 B
C
11 lines
105 B
C
|
#include <math.h>
|
||
|
|
||
|
double fabs(double x) {
|
||
|
if(x < 0) {
|
||
|
return -x;
|
||
|
}
|
||
|
else {
|
||
|
return x;
|
||
|
}
|
||
|
}
|