static void Main (string[] args)
{
while (true)
{
Int[] Al = new Int[7];
for (int i = 0; i < al. Length; i++)
{
Console.Write ("Please enter" + (i + 1) + "peer score");
Al[i] = Convert.ToInt32 (Console.ReadLine ());
}
for (int j = 0; J < al. Length; J + +)
{
Console.WriteLine ("Please enter" + (j + 1) + "bit students ' score" + al[j] + "min");
}
for (int i = 1; I <= al. Length-1; i++)
{
for (int j = 1; J <= al. Length-i; J + +)
{
if (Al[j] > Al[j-1])
{
int t = al[j];
AL[J] = al[j-1];
Al[j-1] = t;
}
}
}
for (int k = 0; K < al. Length; k++)
{
Console.WriteLine (Al[k]);
}
int x = 0;
for (int s = 0; s < al. Length; s++)
{
x = x + al[s];
}
Console.WriteLine ("Total score is" + x);
Double n = (1.0 * x-al[0]-al[1]-al[al. LENGTH-1]-Al[al. Length-2])/(AL. LENGTH-4);
Console.WriteLine ("Average divided into:" + N);
Console.ReadLine ();
}
}
Array sorting averaging