BMI calculator

#include <stdio.h>

int main()
{
    double weight;

    double height;

    printf("Enter your Weight in kilograms: ");

    scanf("%lf", &weight);

    printf("Enter your Height in meters: ");

    scanf("%lf", &height);   

    double s = (height * height);

    double n = ( weight / s );

    printf("BMI = %lf kg/m2\n", n);

    if (n <= 18)
    {
        printf("Underweight");
    }
    else if (n > 18 && n <= 25)
    {
        printf("Normalweight");
    }
    else if (n > 25 && n <= 29)
    {
        printf("Overweight");
    }
    else 
    {
        printf("Obesity\n");

        if (n > 29 && n <= 34)
        {
            printf("Class I obesity");
        }
        else if (n > 34 && n <= 39)
        {
            printf("Class II obesity");
        }
        else
        {
            printf("Class III obesity");
        }

    } 
    return 0;
}