#include "stdafx.h"
#include <iostream>
int division(int x, int y)
{
return (x/y);
}
int main()
{
usingnamespace std;
cout << "What is your height in inches? " << endl;
int x;
cin >> x;
int a;
a = x * x;
cout << "What is your weight in pounds?" << endl;
int y;
cin >> y;
cout << y << endl;
int b;
b = division(y,a);
cout << b << endl;
int c;
c = b * 703;
cout << "Your BMI is: " << c << endl;
return (0);
}
I have narrowed it down to the division operator that will not work. Can anyone help me with this.
I dont need it but i just put it there as a way to try and solve my problem but I dont know about doubles yet. Do you guys mind just giving me a brief explanation of doubles.