public static void Main()
double math, lit, phy, his, ave;
Console.WriteLine("Hello there!");
Console.WriteLine("What's your name?");
name = Console.ReadLine();
Console.WriteLine( "Nice to meet you, " + name + "!");
Console.WriteLine("I will help you calculating your average and tell you if you passed or not.");
Console.WriteLine("What's your Math grade?");
math = double.Parse(Console.ReadLine());
Console.WriteLine("What's your Literature grade?");
lit = double.Parse(Console.ReadLine());
Console.WriteLine("What's your Physics grade?");
phy = double.Parse(Console.ReadLine());
Console.WriteLine("What's your History grade?");
his = double.Parse(Console.ReadLine());
ave = ( math + lit + phy + his ) / 4;
Console.WriteLine( "Very Good! You passed with an average of " + ave);
Console.WriteLine( "I’m sorry, you failed with an average of " + ave);
Console.WriteLine("See you next time, bye!");