Bmi Index - Java Algorithm

Java examples for Algorithm:Formula

Description

Bmi Index

Demo Code



public class BmiIndex {
    public static void main(String args[]) {
        double weight = 65;
        double height = 1.75;
        double bm = weight / (Math.pow(height, 2));
        System.out.println("Bmi is " + bm);
    }//from ww w  .j a v  a2  s. c  o m

}

Related Tutorials