using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace The_Average
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i < 3 ; i++)
{
int x,y,z,c;
Console.Write("the student" + i);
Console.WriteLine(":");
for (int j = 1; j < 4; j++)
{
Console.Write("the material of degree" + j);
Console.WriteLine(":");
Console.ReadLine();
Console.WriteLine("The_Average"+result);
}
}
int result = ave(x, y, z ,c);
Console.WriteLine("the result"+result);
Console.ReadKey();
}
static int ave(int x, int y, int z, int c);
{
int result = ((x + y + z + c) / 4);
return result;
}
}
}