BOOK
Topic source''' xiaoming hight and weight practice'''# -*- coding: utf-8 -*-name = input('please inpoout your name,')height = input('please inpoout your height,')weight = input('please input your weight,')height = float(height)weight = float(weight)BMI = weight/(height*height)if BMI > 32 : print('Hi',name,'Your result is TOO FAT')elif BMI <= 32 and BMI >=28: print('Hi',name,'Your result is FAT')elif BMI < 28 and BMI >= 25 : print('Hi', name,'Your result is TOO HEAVY')elif BMI < 18 and BMI >= 18.5 : print('Hi',name,'Your result is Normally')else: print('Hi',name,'Your result is TOO LIGHT')
- 1
眔史