title: Getting error: format specifies type 'int' but the argument has type 'double'
body: <p>I don't know why this won't compile. Any idea? </p>
  
  <p>It is pretty straight forward and I've spent forever looking at it and can't figure out what is wrong with it. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  void euroToDollar(double euro);
  
  int main() {
      double europrice1 = 1.00;
  
      euroToDollar(europrice1);
      return 0;
  }
  
  void euroToDollar(double euro){
  
      double dollar = euro * 1.11;
  
      printf("EUR%.2d = USD%.2d" ,euro, dollar);
      return;
  }
  </code></pre>
  
  <p>The error message:</p>
  
  <pre><code>Basic.c:24:39: error: format specifies type 'int' but the argument has type
    'double' [-Werror,-Wformat]
  printf("EUR%.2d = USD%.2d" ,euro, dollar);
                       ~~~~         ^~~~~~
                       %.2f
   2 errors generated.
  </code></pre>