java--测体重练习

public class tz{

   public static void main(String[] args){
       int sg=165,tz=52;bz = sg-115
       
       if (tz-bz>3)
{ System.out.println(
"体重偏胖,请多运动!"); } else if(tz-bz<-3)
{ System.out.println(
"体重偏瘦,请注意营养!"); } else { System.out.println("体重正常,请多保持!"); } } }

 

posted @ 2015-12-03 13:06  秦萧不再  阅读(347)  评论(0编辑  收藏  举报