public const int AgeOfMajority = 18;
if (value>=0 && value<=100)
this.Name = "Шихов Никита Владимирович";
public Person(string Name, int Age)
Console.WriteLine("Имя: {0} " + "\nВозраст: {1}", this.Name, this.Age);
public int YearOfMajority()
int year = AgeOfMajority - Age;
public static void Main()
DateTime dt = new DateTime(2020, 4, 1);
String group = new String(new char[] { 'P', 'K', 'S', '-', '9', '5' });
double CircleSquare = 3 * 3 * Math.PI;
Person student = new Person();
student.YearOfMajority();
Person person = new Person();
Person person1 = new Person("Титов Егор Ильич", 45);
Console.ForegroundColor = ConsoleColor.Cyan;
student.name = "Карпин Валерий Григорьевич";