Im trying to make a BMI calculator and cannot figure out where I went wrong. It runs and compiles without any errors but doesn't give me at all the output i need.
heres the code..im really new to c++, any help would be great
You are defining your formulas before actually putting in some value. So when the program is running, it reads what the bmi and height should be, but guess what? You haven't told the program what weight, height and inches are yet.
When your program is running, it reads from the top till it gets to the end of the program per say.
It will read bmi first and try to calculate it, but since you don't have numbers in weight and height yet, it will calculate with something and spit out a garbage output. So what you do is put the formulas after the user inputs the numbers but before each one is called. So put height after you get the number of feet and inches; put bmi after you get the number for weight and height but before you output its value, soo something like this: