title: C double value not stored using scanf
body: <p>So what is happening is I ask the user for input, then store that into a variable using scanf.</p>
  
  <p>But when I try to retrieve the value, it just a 0.000000. I'm sure I'm just making a stupid noob mistake, but any help you can provide is appreciated.</p>
  
  <pre><code>printf("Enter the radius of your circle/sphere: ");
  scanf("%f", &amp;radius);
  
  printf("\n%f", radius);
  </code></pre>
  
  <p>Ex:</p>
  
  <p>Enter the radius of your circle/sphere: 10</p>
  
  <p>0.0000000</p>
  
  <p>Thanks for your time!</p>