*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Source
{
struct Human
{
public string name;
public double height;
public double kg;
}
class Program
{
static void Main(string[] args)
{
Human h;
h.name = "김종현";
h.height = 165.5;
h.kg = 75.4;
Human(h.name, h.height, h.kg);
//Console.WriteLine("{0}{1}{2}", h.name, h.height, h.kg);
//helth = Bmi(name, height, kg);
}
public static void Human(string name, double height, double kg)
{
double bmi = (height / 100) * (height / 100);
double helth = kg / bmi;
string result = (bmi >= 15 && bmi <= 20) ? "좀찌세요" : "좀뺴세요";
Console.WriteLine("이름:{0}\n키:{1}\n몸무게:{2}\n결과:{3}", name, height, kg, result);
Console.WriteLine("bmi:{0}\n", helth);//31
// 15 <= 20 20 >= 15 "저체중";
//20 <= 25 25 >= 20 "정상체중";
//25 <= 30 30 >= 25 "과체중";
//30 > 30 "비만";
//35 < 35 "고도비만";
// return helth;
}
}
}