C Tutorial/stdlib.h/llabs
llabs
Item Value Header file stdlib.h Declaration long long int llabs(long long int num); Return returns the absolute value of num.
#include <stdlib.h>
#include <stdio.h>
int main(void){
char num[80];
printf("a number:");
gets(num);
return llabs(atol(num));
}