Question: Write a C program that reads the height and weight of a person and calculates the body mass index (bmi) according to formula bmi =
Write a C program that reads the height and weight of a person and calculates the body mass index (bmi) according to formula bmi = weight/(height)2. Your program should display a qualitative assessment of the weight according to the following table:
BMI value Letter Grade [0-20) Below normal weight [20-25) Normal weight [25-30) Overweight >=30 Obese
Sample Output: Enter your weight in kilos: 70 Enter your height in meters: 1.80 Result: Normal weight Test values: (70 1.8) (50, 1.9) (90, 1.6), (140, 1.7)
in c code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
