/BMI-Calculator

Basic BMI Calculator written in C language

Primary LanguageC

BMI Calculator

This C program calculates Body Mass Index (BMI) and provides a preliminary assessment of the user's health risk based on their weight, height, and whether they are Asian or not.

Usage

  1. Compile the program using a C compiler.
  2. Run the compiled executable.
  3. Follow the on-screen prompts to input weight, height, and ethnicity.

Input

  • Weight: Enter weight in kilograms (kg).
  • Height: Enter height in meters (m).
  • Asian: Enter 'Y' for Yes, 'N' for No.

Output

The program displays:

  • Calculated BMI
  • Health risk assessment
  • Ideal BMI category
  • Recommended mass reduction to reach "normal" state.

Notes

  • Assumes metric units.
  • BMI calculated using formula: weight / (height * height).
  • Health risk assessment and ideal BMI categories are based on standard thresholds.
  • Recommendation for mass reduction based on moving BMI to "Normal" category.