Home > Back-end > C language to calculate index weight
C language to calculate index weight
Time:06-06
Bosses find a mistake!!!!!!
CodePudding user response:
Int/int will get int, you only need to consider change the BMI to float, calculation to convert the data types, Such as BMI=weight/(double) (height * height)
CodePudding user response:
Don't post code to calculate or shoot figure... If judgment not add double quotation marks inside the Suggest all use floating-point, BMI and height and weight were not an integer