Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Abs - Returns Absolute Value of an Integer in C++

Makes the input number Absolute
Abs - Returns Absolute value of an Integer
abs() function is used to display the negative values into the positive representation. Which takes the negative values as the function parameters


Syntax:
abs(int value);

//ABS() FUNCTION

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
int a;
clrscr();
a=abs(-15);
cout<<a;
getch();
return 0;
}