Quantcast
Channel: How do I get BMI correct? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Remy Lebeau for How do I get BMI correct?

Your getData() function takes its parameters by value, so any modifications it makes to them are not reflected back to the variables in main(), thus they are still 0.0 when passed to calcBMI().You need...

View Article


How do I get BMI correct?

Having an issue with my calculation to determine BMI. Please advise me where I am going wrong as the answer always returns as -nan(ind). I'm sure that the problem lies with the calculation itself as I...

View Article
Browsing latest articles
Browse All 2 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>