using System;
namespace sredenuspeh
{
class Program
{
static void Main(string[] args)
{
string[] students = { "Васил", "Даниел", "Божидарда" };
string[] subjects = { "БЕЛ", "МАТ", "ИТ" };
int[,] marks = new int[students.Length, subjects.Length];
for (int i = 0; i < students.Length; i++)
{
Console.WriteLine("Въведи оценки за " + students[i]);
for (int j = 0; j < students.Length; j++)
{
Console.Write(subjects[j] + ": ");
marks[i, j] = int.Parse(Console.ReadLine());
}
}
for (int j = 0; j < subjects.Length; j++)
{
int sum = 0;
for (int i = 0; i < students.Length; i++)
{
sum += marks[i, j];
}
Console.WriteLine("Среден успех по {0} {1:f2}", subjects[0], (double)sum / students.Length);
}
}
}
}