public static void Main()
string restart = "restart";
Console.WriteLine("how many students do you have?");
int num = int.Parse(Console.ReadLine());
string[] names = new string[num];
for (int i = 0; i < num;)
Console.WriteLine("please enter their names " + "(" +( i+1) +")" );
names[i] = Console.ReadLine();
Console.WriteLine("How many grades are you entering per students");
int num2 = int.Parse(Console.ReadLine());
int[,] grades = new int [num,num2];
Console.WriteLine("("+(j+1) +") Please enter a grade for each student(" +names[i]+")");
grades[i,j] = int.Parse(Console.ReadLine());
int length = names[i].Length;
for(int spaces=0;spaces >= space;spaces++)
{Console.Write(grades[i,j]+" ");}
{Console.Write(grades[i,j] +" ");}
{Console.Write(grades[i,j] +" ");}
for(int x = 0; x < num2;)
Console.Write("Final Average: " + Avg.ToString("###.##"));
Console.WriteLine("The Following studens have failed:");
for(int kamil = 0; kamil <num;)
for(int x = 0; x < num2;)
{Console.WriteLine(names[kamil]);}
Console.WriteLine("Press q to quit and anything else to restart");
restart = Console.ReadLine();