6 lines
59 B
C
6 lines
59 B
C
|
int abs(int x) {
|
||
|
if (x < 0)
|
||
|
return -x;
|
||
|
return x;
|
||
|
}
|