C/math.h/isgreaterequal — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
|
(нет различий)
|
Версия 17:20, 25 мая 2010
int isgreaterequal(a, b): Returns nonzero if a is greater than or equal to b
<source lang="cpp">
- include <stdio.h>
- include <math.h>
int main(void) {
printf("isgreaterequal(1.0, 2.0) %d\n", isgreaterequal(1.0, 2.0)); printf("isgreaterequal(1.0, 1.0) %d\n", isgreaterequal(1.0, 1.0)); printf("isgreaterequal(2.0, 1.0) %d\n", isgreaterequal(2.0, 1.0)); return 0;
}
/* isgreaterequal(1.0, 2.0) 0 isgreaterequal(1.0, 1.0) 1 isgreaterequal(2.0, 1.0) 1
- /
</source>