title: Why bermuda.c filters all the data?
body: <p><strong>bermuda.c</strong>:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
   float latitude;
   float longitude;
   char info[80];
   while (scanf("%f, %f, %79[79^n]",&amp;latitude ,&amp;longitude ,info ) == 3)
     if ((latitude &gt; 26) &amp;&amp; (latitude &lt; 34))
       if ((longitude &gt; -76) &amp;&amp; (longitude &lt; -64))
         printf("%f, %f, %s\n", latitude, longitude, info);
  
  return 0;
  }
  </code></pre>
  
  <p><strong>geo2json.c</strong>:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  int main()
  
  {
    float latitude;
    float longitude;
    char info[80];
    int started = 0;
  
    puts("data=[");
    while (scanf("%f,%f,%79[^\n]", &amp;latitude, &amp;longitude, info) == 3) {
      if (started)
         printf(",\n");
      else
         started = 1;
      if ((latitude &lt; -90.0) || (latitude &gt; 90.0)){
          fprintf(stderr, "Invalid latitude : %f\n", latitude);
          return 2;
      }   if ((longitude &lt; -180.0) || (longitude &gt; 180.0)){
          fprintf(stderr, "Invalid longitude : %f\n", longitude);
          return 2;
      }
      printf("{latitude: %f, longitude : %f, info: '%s'}",latitude, longitude, info);
      }
      puts("\n]");
      return 0;
  }
  </code></pre>
  
  <p>But when I enter</p>
  
  <pre><code>(bermuda | geo2json) &lt; spooky.csv
  </code></pre>
  
  <p>It happens likscreen:</p>
  
  <pre><code>data=[]
  </code></pre>
  
  <p>There are no data shown on the screen</p>
  
  <p><code>Bermuda.c</code> are supposed to filter the <code>((latitude &gt; 26) &amp;&amp; (latitude &lt; 34))</code> and <code>((longitude &gt; -76) &amp;&amp; (longitude &lt; -64))</code> ,but it filter all the data in <code>spooky.csv</code> and there is some data in it meet the criteria of <code>((latitude &gt; 26) &amp;&amp; (latitude &lt; 34))</code> and <code>((longitude &gt; -76) &amp;&amp; (longitude &lt; -64))</code></p>