title: Scanf with double in C returns 0.00000
body: <pre><code>#include &lt;stdio.h&gt;
  int main(void) {
  
  double a, b;
  
      scanf("%lf %lf\n", &amp;a, &amp;b);
      printf("%lf%lf\n", a, b);
  }
  </code></pre>
  
  <p>Why does it always return 0.0000 regardless of what I write?</p>