class Program { static void Main(string[] args) { WriteLine(" Sales Percentage App "); WriteLine("*** You will be prompted to enter monthly sales figures. ***"); WriteLine("*** The values entered will be displayed, along with the ***"); WriteLine("*** percentage of the total contributed by that value. ***"); WriteLine(""); WriteLine(""); int amountTries; int saleN = 0; int sale; int i = 0; int sum = 0; WriteLine("Enter how many months of data would you like to input: "); amountTries = Convert.ToInt32(ReadLine()); int[] sales = new int[amountTries]; while (amountTries != 0) { --amountTries; WriteLine("Please enter sales figure #" + ++saleN); sale = Convert.ToInt32(ReadLine()); sale = sales[i]; i++; } WriteLine(" Ion Realty Sales App"); for (int k = 0; i < sales.Length; k++) { sum += sales[i]; } WriteLine("Total Sales:" + sum); } } }