package tz; public class Tz { public static void main(String[] args) { int tz=70; int sg=180; int bz=sg-100; boolean sex=true ; if (sex=true) { bz=sg-100; } else { bz=sg-110;} if(bz-tz>=-3&&bz-tz<=3){ System.out.println("正常"); } if(bz-tz<=-3){ System.out.println("偏胖"); } else{ System.out.println("偏瘦"); } // TODO 自动生成的方法存根 } }