prime/src/Runtime/arith.c

16 lines
169 B
C
Raw Normal View History

#include <stdlib.h>
int abs(int n) {
if (n < 0)
return (-n);
else
return (n);
}
long labs(long n) {
if (n < 0)
return (-n);
else
return (n);
}