Console.WriteLine("Справка за здравен статус");
Console.WriteLine("Име и години:" + this.name+" " +this.age);
Console.WriteLine("Тегло, кг:" + this.weight);
Console.WriteLine("Ръст, м:" + this.height);
double massin = weight/(height*height);
Console.WriteLine("Индек на тел.маса : " + massin);
Console.WriteLine("Лицето {0} след 10 години ще бъде на {1}", this.name, this.age+10);
public static void Main()
Person MyPerson = new Person();
Console.WriteLine("Въведи име:");
MyPerson.name=Console.ReadLine();
Console.WriteLine("Въведи възраст:");
MyPerson.age=int.Parse(Console.ReadLine());
Console.WriteLine("Въведи тегло, кг:");
MyPerson.weight=double.Parse(Console.ReadLine());
Console.WriteLine("Въведи височина, м:");
MyPerson.height=double.Parse(Console.ReadLine());