diff options
Diffstat (limited to 'C/HF/bermuda.c')
| -rw-r--r-- | C/HF/bermuda.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/C/HF/bermuda.c b/C/HF/bermuda.c new file mode 100644 index 0000000..d1657c5 --- /dev/null +++ b/C/HF/bermuda.c @@ -0,0 +1,21 @@ +#include <stdio.h> + +int +main(void) +{ + float latitude; + float longitude; + char info[80]; + int started = 0; + + while (scanf("%f,%f,%79[^\n]",&longitude, &latitude, info) == 3) { + + if ((longitude > -76 && longitude < -64) && + (latitude > 26 && latitude < 34)) + printf("%f,%f,%s\n",longitude, latitude, info); + } + + return 0; +} + + |
