import java.util.Scanner; public class bmi { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); double in, lb, bmi, m, kg; System.out.print( "Your height in inches: " ); in = keyboard.nextDouble(); System.out.print( "Your weight in lb: " ); lb = keyboard.nextDouble(); kg = lb * (2.20462); m = in * (39.3701); bmi = kg / (m*m); System.out.println( "Your BMI is " + bmi ); } }