体重计算

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 自动生成的方法存根

    }

}

 

posted @ 2015-12-04 09:13  机智的实习生  阅读(98)  评论(0编辑  收藏  举报