public static void Main()
Console.WriteLine("Pascal's Triangle");
Console.Write("Enter a row number: ");
inputRow = Console.ReadLine();
if (Int32.TryParse(inputRow, out input) == true)
Console.WriteLine("Number greater than 25 is not allowed.");
Console.WriteLine("Number less than zero is not allowed.");
Console.WriteLine("The sum of numbers above row 0 is none. The sum of numbers in row 1 is 2.");
for (int i = 0; i < input; i++)
for (int n = 0; n <= i; n++)
digitOne = digitOne * (i - n + 1) / n;
for (int a = 0; a < input + 1; a++)
for (int e = 0; e <= a + 1; e++)
digitTwo = digitTwo * (a - e + 1) / e;
Console.WriteLine("The sum of numbers above row {0:#,0}", input + " is " + sumAboveRow + ". " + "The sum in row " + (input + 1) + " is " + sumInRow + ".");
Console.WriteLine("Invalid Input. Please enter a valid input.");