Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

abs in cpp

int a =4;
int b =5;

int ans = abs(a-b); //ALWAYS RETURN POSITIVE NUMBER.
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #abs #cpp
ADD COMMENT
Topic
Name
1+9 =