package tijian; public class TiJian { public static void main(String[] args) { double TZ = 80; double SG = 186.5; double B = 1; int X = 1; if(X >= 0) { B = SG - 100; } else{ B = SG - 110; } if (TZ - B > 3) { System.out.println("胖子"); } if (TZ - B < -3) { System.out.println("瘦子"); } else { System.out.println("标准"); } } }