c math abs code example
Example: c absolute value
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
printf("ABSOLUTE VALUE\n\nNumer: ");
scanf("%d",&a);
if(a < 0)
{
a = a * (-1);
}
printf("Absolute value: %d\n\n", a);
system("pause");
}