title: Implementing a BMI Calculator in C
body: <p>I am having trouble making the BMI calculator program and I am wondering what I haven't done correctly. I am a beginner so go easy on me, thanks!</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  main()
  {
      // Variables for height, weight, and bmi
      float height;
      float weight;
      float bmi;
  
      printf("\aEnter your height: ");
      scanf(" %f", height);
  
      printf("\a\nEnter your weight: ");
      scanf(" %f", weight);
  
      bmi = (height * 4.88) / (weight * weight);
  
      printf("\a\nYour BMI is: %f", bmi);
      getchar();
  
      return 0;
  }
  </code></pre>