public class TZ { public static void main(String[] args) { // TODO 自动生成的方法存根 double Shengao = 186.0,Tizhong = 75.0; double B=Shengao-100; if(Tizhong-B>3){ System.out.println("偏胖"); }else{if(Tizhong-B<-3){ System.out.println("偏瘦"); }else{ System.out.println("合适"); } } } }