long labs(long n);
#include <stdio.h> #include <math.h> int main() { long m=11, n=-13; //為變數賦初值 long a = labs(m); //求m的絕對值 long b = labs(n); //求n的絕對值 printf("%ldn%ldn", a, b); return 0; }