So- I'm trying to successfully run a program that calculates your BMI but, although it runs, it is not giving the the correct math. Instead, it gives me the number i've submitted as my weight as an answer. I'm using Visual Studio 2008 and the formula: weight / (height/100)*2
Here is my code
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int weight;
int height;
double BMI;
cout<<"You must submit your weight(kg) in order to find your body mass index; please enter your weight now: ";
cin>>weight;
cout<<"\nPlease enter your height in cm: ";
cin>>height;
For this project, it seems my prof. wants me to declare both the weight and the height as int and the bmi as a double. I believe it's an order of operations problem or something. Since it's solving for int's. So in the case of having to declare those functions as is, what would i have to change?