public static void Main()
for( int i =1; i <4; i++)
Console.WriteLine("Please enter your name :");
name = Convert.ToString(Console.ReadLine());
Console.WriteLine("Please enter your Physics marks out of 50 :");
phy = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Please enter your Chemistry marks out of 50 :");
chem = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Please enter your Mathematics marks out of 50 :");
math = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Please enter your Biology marks out of 50 :");
bio = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Please enter your Englsih marks out of 50 :");
eng = Convert.ToDouble(Console.ReadLine());
total = phy + chem + math + bio + eng;
Console.WriteLine("The overall percentage of " + name + " is " + avg + "%");
Console.WriteLine("The grade is A+");
Console.WriteLine("The grade is A");
Console.WriteLine("The grade is B");
Console.WriteLine("The grade is C");
Console.WriteLine("The grade is D");
Console.WriteLine("The grade is F");
max = Math.Max(Math.Max(Math.Max(Math.Max(phy, chem), math), bio), eng);
min = Math.Min(Math.Min(Math.Min(Math.Min(phy, chem), math), bio), eng);
Console.WriteLine("The maximum and minimum score obtained by " + name + " is " + max + " and " + min + " respectively");