View Single Post
Old Mar 29th, 2005, 9:55 AM   #2
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 406
Rep Power: 5 xavier is on a distinguished road
Send a message via Yahoo to xavier
well .. it should be like this :
if(bmi<18.5)System.out.println("Underweight");
    else if((bmi>18.5)&&(bmi<24.9))System.out.println("normal");
          else if((bmi>25)&&(bmi<29.9))System.out.println("Overweight");
               else System.out.println("Obesis");
You make some modifications to suit your needs ... and that should do it, if i understood what you'r asking
__________________
Don't take life too seriously, it's not permanent !
xavier is offline   Reply With Quote