using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hello_world
{
internal class Program
{
static void Main(string[] args)
{
double hight = 1.78;
int weight = 100;
double BMI = weight/(hight*hight);
Console.WriteLine("您的BMI指数是:"+BMI);
Console.Write("您的体重属于:");
if (BMI < 18.5)
{
Console.WriteLine("体重过轻");
}else if (BMI >= 18.5 && BMI <= 24.9)
{
Console.WriteLine("正常范围");
}
else if (BMI >= 24.9 && BMI < 29.9)
{
Console.WriteLine("体重过重");
}
else if ( BMI >= 29.9)
{
Console.WriteLine("肥胖症");
}
Console.ReadLine();
}
}
}