public static void Main() { Console.WriteLine("Hello Please enter number of product you want(A/B/C/D)"); int num = Convert.ToInt16(Console.ReadLine()); int total = 0; int promototal = 0; string prodstring = String.Empty; GetProducts getp = new GetProducts(); for (int i = 0; i < num; i++) { Console.Write("Hello Please enter your product {0}: ", i); string prod = Console.ReadLine(); prodstring += prod; int price = getp.GetProductCost(prod); total += price; } Console.WriteLine("Your bill is {0}", total); promototal = getp.ApplyPromotion(prodstring, total); Console.WriteLine("Your promotion bill is {0}", promototal); }