File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #https://www.facebook.com/permalink.php?story_fbid=100915978469862&id=100056543793712
2+ #Subscribed by Code House
3+
4+ print (' BMI CALCULATOR' )
5+ name = input ('What is your name?' )
6+ weight = float (input ('What is your weight (in Kgs)?' ))
7+ height = float (input ('What is your height (in meters)?' ))
8+ bmi = weight / (height ** 2 )
9+
10+ if bmi < 18.5 :
11+ print (f"\n { name } is underweight by { bmi } BMI" )
12+ print ('Eat foods containing high portion of fats and carbohydrates' )
13+ elif 18.5 < bmi < 24.9 :
14+ print (f"\n { name } has normal weight by { bmi } BMI" )
15+ print ('You are living a healthy life and !!!KEEP IT UP!!!' )
16+ elif 25.0 < bmi < 29.9 :
17+ print (f"\n { name } is overweight by { bmi } BMI" )
18+ print ('\n Eat foods containing less amount of fats and carbohydrates and do regular exercise.' )
19+ else :print (f"\n { name } is obese by { bmi } BMI.\n Regular exercise is very important for you & consult a dietician to plan your diet." )
20+ print ('\n |||||||||| THANK YOU ||||||||||' )
21+
22+
23+
You can’t perform that action at this time.
0 commit comments