public static void Main()
Student Student1 = new Student();
Student Student2 = new Student();
Student Student3 = new Student();
public class Student { string FirstName; string LastName; int Age; int Rate;};
Console.WriteLine("Введіть ім'я першого учня:");
Console.WriteLine("Введіть прізвище першого учня:");
Console.WriteLine("Введіть вік першого учня:");
Console.WriteLine("Введіть оцінку першого учня числом від 0 до 100");
Student1.FirstName = (Console.ReadLine());
Student1.LastName = (Console.ReadLine());
Student1.Age = Convert.ToInt32()(Console.ReadLine());
Student1.Rate = Convert.ToInt32()(Console.ReadLine());
Console.WriteLine("Введіть ім'я другого учня:");
Console.WriteLine("Введіть прізвище другого учня:");
Console.WriteLine("Введіть вік другого учня:");
Console.WriteLine("Введіть оцінку другого учня числом від 0 до 100");
Student2.FirstName = (Console.ReadLine());
Student2.LastName = (Console.ReadLine());
Student2.Age = Convert.ToInt32()(Console.ReadLine());
Student2.Rate = Convert.ToInt32()(Console.ReadLine());
Console.WriteLine("Введіть ім'я третього учня:");
Console.WriteLine("Введіть прізвище третього учня:");
Console.WriteLine("Введіть вік третього учня:");
Console.WriteLine("Введіть оцінку третього учня числом від 0 до 100");
Student3.FirstName = (Console.ReadLine());
Student3.LastName = (Console.ReadLine());
Student3.Age = Convert.ToInt32()(Console.ReadLine());
Student3.Rate = Convert.ToInt32()(Console.ReadLine());
string RateByWords = (Rate.ConvertToInt32()) switch
0 - 54 => "Незадовільно",
_ =>"Введіть, будь ласка, число від 0 до 100! ",
foreach( FirstName, LastName, Age, Rate for Student1, Student2, Student3);