bermuda.c 314 B

1234567891011
  1. #include <stdio.h>
  2. int main() {
  3. float latitude;
  4. float longitude;
  5. char info[80];
  6. while (fscanf(stdin,"%f,%f,%79[^\n]", &latitude , &longitude , info ) == 3)
  7. if (((latitude > 30) && (latitude < 33)) && ((longitude > -69) && (longitude < -66)))
  8. printf("%f,%f,%s\n",latitude, longitude, info );
  9. return 0;
  10. }