BMI Calculator
Just wondering what's wrong with this code... as its showing as "no Output" as a result. import java.util.Scanner; public calss BMI{ public static void main(String[] args){ Scanner keyboard = new Scanner(System.in); double height; double weight; double BMIValue; //Input Height System.out.println("Enter you height just the feet: "); height = keyboard.nextDouble(); System.out.println("Enter you height just the inches: "); double inches=keyboard.nextDouble(); //Conversion to cm height=height+inches/12; //Input Weight System.out.println("Enter your weight in pounds: "); weight=keyboard.nextDouble(); // conversion to Kg weight=weight/2.2; BMIValue = weight/height*height; System.out.println(BMI); } }