Get absolute value of long integer parameter: how to use labs
#include <stdio.h> #include <math.h> int main () { int n, m; n = labs( 645537 ); m = labs( -100010 ); printf (" n = %d\n", n); printf (" m = %d\n", m); return 0; }