title: How to calculate BMI in C++ with ft and inches in calculation
body: <p>How do you calculate BMI = mass (lb) x 703/ (height(in))squared in C++.</p>
  
  <p>BMI answer was 33.4695</p>
  
  <pre><code>I entered:
  cout &lt;&lt; "weight(lbs)";
  cin &gt;&gt; lbs;
  cout &lt;&lt; "height";
  cin &gt;&gt; height &gt;&gt; in;
  
  BMI = ((lbs) * 703)/pow(height(in)), 2);
  </code></pre>
  
  <p>I'm having and error: no instance of overloaded function "pow" matched the argument list argue types are: (&lt;error-types>).</p>
  
  <p>I have included the <code>&lt;cmath&gt;</code> file and height is defined as double.</p>