The Chemistry department has 4 computers, the Physics department has 8, the English de-
partment has 2, and the Math lab has 12. Write a program that produces the following out-
put. Have the computer perform the calculation in the last line. Format the output using the
appropriate escape sequences.
class Program
{
static void Main(string[] args)
{
Person person = new Person { Name = "Tom", Age = 23 };
Console.WriteLine("Имя: {0} Возраст: {1}", person.Name, person.Age);
Console.Read();
}
}
class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
Comments
Leave a comment