Java examples for Algorithm:Formula
Bmi Index
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 }