Can someone please tell me what's wrong with my code?
I'm trying to make a bmi calculator in java. import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner height=new Scanner(System.in); Scanner weight=new Scanner(System.in); double h= height.nextDouble(); double w= weight.nextDouble(); double in=(h*0.0254); double bmi=((w*0.453592)/(in*in)); if (bmi<18.5) { System.out.println(bmi); System.out.println("Underweight"); }else if (bmi>=18.5 && bmi<25) { System.out.println(bmi); System.out.println("Normal"); }else if (bmi>=25 && bmi<30) { System.out.println(bmi); System.out.println("Overweight"); }else { System.out.println(bmi); System.out.println("Obese"); } } }