# How to make absolute value in c language?

In C language you can do absolute value by using abs function found in the stdlib library.

#include <stdio.h>
#include <stdlib.h>

int main () {
int a;

a = abs(1);
printf("value of a = %dn", a);

a = abs(-1);
printf("value of a = %dn", a);

return(0);
}