int islessgreater(a, b): Returns nonzero if a is greater than or less than b. : islessgreater « math.h « C Tutorial






#include <stdio.h>
#include <math.h>

int main(void)
{
  printf("islessgreater(1.0, 2.0) %d\n", islessgreater(1.0, 2.0));
  printf("islessgreater(1.0, 1.0) %d\n", islessgreater(1.0, 1.0));
  printf("islessgreater(2.0, 1.0) %d\n", islessgreater(2.0, 1.0));
  return 0;
}
islessgreater(1.0, 2.0) 1
islessgreater(1.0, 1.0) 0
islessgreater(2.0, 1.0) 1








19.36.islessgreater
19.36.1.int islessgreater(a, b): Returns nonzero if a is greater than or less than b.