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("体重正常,请多保持!"); } } }
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("体重正常,请多保持!"); } } }