Hello,
I am trying to make a bmi calculator using inputs from the user to calculate bmi and than tell you what category that falls in and i am stuck. I cant get the BMI to come out correctly and am wondering what i am doing wrong.
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); //Setup serial communication
float W, H, BMI;
BMI = ((703W)/(HH));
Serial.print("Enter your weight in pounds");
while(Serial.available() <=0);
W = Serial.parseFloat();
Serial.println("\nNow enter your height in inches");
while(Serial.available() <=0);
H = Serial.parseFloat();
Serial.print(BMI);
}
void loop() {
// put your main code here, to run repeatedly:
}