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