title: Code::Blocks does not recognise double identifier (%lf) in a simple C program
body: <p>Today I decided to recap a bit the C programming language fundamentals and I have encountered this small issue within my Code::Blocks IDE: when I had used the <code>%f</code> format identifier to read and write a decimal number everything went well, but when I had switched to the <code>%lf</code> format identifier, it did not read or write the number properly.</p>
  
  <p>This is my code:<br></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      double x;
      scanf("%lf", &amp;x);
      printf("x = %lf", x);
      return 0;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ueKiG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ueKiG.jpg" alt="enter image description here"></a></p>
  
  <p>This is the output:<br>
  <a href="https://i.stack.imgur.com/0HyEQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0HyEQ.jpg" alt="enter image description here"></a></p>
  
  <p>These are the compiler settings from the Code::Blocks menu:
  <a href="https://i.stack.imgur.com/3JDbF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3JDbF.jpg" alt="enter image description here"></a></p>
  
  <p>I have searched for a solution online, including the Code::Blocks forums, but I haven't found anything relevant. I am not sure whether is a compiler problem or an IDE problem. If you know a fix or you have an explanation for this issue, please help me. I am preety sure other people encountered this as well.</p>