java计算体质指数BMI
```import java.util.Scanner;
public class BMI {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int weight=in.nextInt();
double high=in.nextDouble();
double BMI=weight/(double)(high*high);
if(BMI<18.5) System.out.print("您的体重偏瘦!");
if(BMI>18.5&&BMI<25) System.out.print("您的体重正常!");
if(BMI>25&&BMI<28) System.out.print("您的体重偏胖!");
if(BMI>=28) System.out.print("您的体重肥胖!");
}
}