int islessequal(a, b): Returns nonzero if a is less than or equal to b
#include <stdio.h>
#include <math.h>
int main(void)
{
printf("islessequal(1.0, 2.0) %d\n", islessequal(1.0, 2.0));
printf("islessequal(1.0, 1.0) %d\n", islessequal(1.0, 1.0));
printf("islessequal(2.0, 1.0) %d\n", islessequal(2.0, 1.0));
return 0;
}
/*
islessequal(1.0, 2.0) 1
islessequal(1.0, 1.0) 1
islessequal(2.0, 1.0) 0
*/
Related examples in the same category