Vérifier si x > y à l’aide de la fonction ‘isgreater(x, y)’

Author:


Download

/*
#include

int isgreater ( x , y  );
int isgreaterequal ( x , y  );
*/

#include 
#include


int main(void)
{
  printf("isgreater(12.0, -12.0) %d", isgreater(12.0, -12.0));
  printf("isgreater(4.0, -4.0) %d", isgreater(4.0, -4.0));
  printf("isgreater(-2.0, 1.0) %d", isgreater(-2.0, 1.0));
  return 0;
}

Leave a Reply

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