public static void Main()
Student Vasyl = new Student("Гуц","Василь",17,79);
Student Marichka = new Student("Гуц","Марічка",115,73);
Student PIB = new Student();
Student[] arr = new Student[] { Vasyl, Marichka,PIB };
Console.WriteLine("|П.І.Б учня |Вік |Оцінка |");
foreach (var item in arr)
string Name = item.Firth_Name + " " + item.Last_Name;
int count_space = name_space - Name.Length;
for (int i = 0; i < count_space ;i++)
string Age = item.Age.ToString();
count_space = a_space - Age.Length;
for (int i = 0; i < count_space;i++)
string Otsinka = item.rate2string();
count_space = ot_space - Otsinka.Length;
for (int i = 0; i < count_space;i++)
Console.WriteLine(string.Format("|{0}|{1}|{2}|",Name,Age,Otsinka));
public Student(string FN,string LN,int A,int R)
public string Firth_Name;
public string rate2string()