C/C++: Retourner la valeur absolue d’une varaible de type ‘int’ avec ‘abs()’

Author:


{filelink=13989}


#include 
#include


int main ()
{
  int x, y;
  x = abs( 5 );
  y = abs( -5 );

  printf (" x = %dn", x);
  printf (" y = %dn", y);

  return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *