abs.c 62 B

123456
  1. #include <stdlib.h>
  2. int abs(int a)
  3. {
  4. return a>0 ? a : -a;
  5. }