C Tutorial/math.h/islessgreater
int islessgreater(a, b): Returns nonzero if a is greater than or less than b.
#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