public static void Main()
Console.WriteLine("How many numbers would you like to sum?");
int numsToSums = Convert.ToInt32(Console.ReadLine());
int[] userInput = new int[numsToSums];
Console.WriteLine("Enter {0} numbers: ", numsToSums);
for (int k = 0; k < numsToSums; k++)
userInput[k] = Convert.ToInt32(Console.ReadLine());
foreach (int x in userInput)
Console.WriteLine("The sum of the numbers you entered is {0}." , sum);