10 lines
92 B
C
10 lines
92 B
C
|
|
#include <stdint.h>
|
|
|
|
int abs(int val) {
|
|
if (val < 0)
|
|
return -val;
|
|
else
|
|
return val;
|
|
}
|