Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

abs c++

/* abs example */
#include <stdio.h>      /* printf */
#include <stdlib.h>     /* abs */

int main ()
{
  int n,m;
  n=abs(23);
  m=abs(-11);
  printf ("n=%d
",n);
  printf ("m=%d
",m);
  return 0;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #abs
ADD COMMENT
Topic
Name
8+5 =