Sunday, August 23, 2015

Lab1 - Calculate body mass index (BMI)



void setup(){
 float weight = 61;
 float height = 165;
 float bmi;

 //equation
 bmi = weight/((height/100)*(height/100));

 //result
 println("Your Weight is" ,weight);
 println("Your Height is" ,height);
 println("Your BMI is" ,bmi);

}

No comments:

Post a Comment