Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

abs c++

#include <iostream>
#include <cstdlib>
#include <climits>
 
int main()
{
    std::cout << std::showpos
              << "abs(+3) = " << std::abs(3) << '
'
              << "abs(-3) = " << std::abs(-3) << '
';
}
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #abs
ADD COMMENT
Topic
Name
2+6 =