public static void Main()
Console.WriteLine("BMI Calculator");
Console.WriteLine("**************");
double beratKg= Convert.ToDouble(Console.ReadLine());
double TinggiM= Convert.ToDouble(Console.ReadLine());
double Tinggi2M= TinggiM * TinggiM;
double mass = beratKg / Tinggi2M;
Console.WriteLine("Your BMI is : " + mass + "Kg/M^2" );
Console.WriteLine("BMI Range");
Console.Write("Your BMI Value:"+ mass);
double BmiInput = Convert.ToDouble(Console.ReadLine());
if ((BmiInput > 0) && (BmiInput < 16))
Console.WriteLine("Category : Severe Thinness");
else if ((BmiInput == 16) && (BmiInput == 17))
Console.WriteLine("Category : Moderate Thinness");
else if ((BmiInput > 17) && (BmiInput < 18.5))
Console.WriteLine("Category : Mild Thinness");
else if ((BmiInput > 18.5) && (BmiInput < 25))
Console.WriteLine("Category : Normal");
else if ((BmiInput > 25) && (BmiInput < 30))
Console.WriteLine("Category : Overweight");
else if ((BmiInput > 30) && (BmiInput < 35))
Console.WriteLine("Category : Obese Class 1");
else if ((BmiInput > 35) && (BmiInput < 40))
Console.WriteLine("Category : Obese Class 2");
Console.WriteLine("Category : Obese Class 3");