Stdlib h C Tutorial

Item Value
Header filestdlib.h
Declarationlong long int llabs(long long int num);
Returnreturns the absolute value of num.

#include 
  #include 
 
  int main(void){
    char num[80];
    printf("a number:");
    gets(num);
    return llabs(atol(num));
  }
a number:2