1
0
Fork 0
flightgear/src/Main/mtest.c

25 lines
302 B
C
Raw Normal View History

1999-04-05 21:32:32 +00:00
#include <errno.h>
#include <math.h>
main() {
double x;
x = sqrt(-1);
if ( errno == EDOM ) {
printf("domain error\n");
}
printf("x = %.2f\n", x);
if ( x < 0 ) {
printf ("x < 0\n");
}
if ( x > 0 ) {
printf ("x > 0\n");
}
if ( x > -9999.0 ) {
printf ("x > 0\n");
}
}