Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ absolute value

#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;
}
 
PREVIOUS NEXT
Tagged: #absolute
ADD COMMENT
Topic
Name
2+2 =