/*
    Calculate Your Body Mass Index
    Version 1.0
    Date 10:41 21/07/2019
    By DreamVB
*/

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{
    int height = 0;
    int pounds = 0;
    int feet = 0;
    int BMI = 0;

    printf("Enter your height in feet: ");
    scanf("%d",&feet);
    height = feet * 12;
    printf("Enter your weight in pounds: ");
    scanf("%d",&pounds);
    //Calulate BMI
    BMI = (pounds * 703) / (height * height);
    //Show BMI chart.
    printf("\nYour BMI is: %d\n\n",BMI);
    printf("BMI Categories::\n");
    printf("  Underweight = <18.5\n");
    printf("  Normal weight = 18.5-24.9\n");
    printf("  Overweight = 25-29.9 \n");
    printf("  Obesity = BMI of 30 or greater\n");
    //Return to system
    return 0;
}
