Answers for "absolute value for int c++"

C++
0

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",n);
  printf ("m=%d\n",m);
  return 0;
}
Posted by: Guest on March-26-2022

Browse Popular Code Answers by Language