How did u solve the Coffee Time, last task on c# course?
Here is my code. I think i cheated a little. But it worked. static void Main(string[] args) { double discount = Convert.ToInt32(Console.ReadLine()); Dictionary<string, double> coffee = new Dictionary<string, double>(); coffee.Add("Americano", 50); coffee.Add("Latte", 70); coffee.Add("Flat White", 60); coffee.Add("Espresso", 60); coffee.Add("Cappuccino", 80); coffee.Add("Mocha", 90); //your code goes her foreach(KeyValuePair<string, double> kvp in coffee) { double newPrice = (100-discount)/100*kvp.Value; Console.WriteLine("{0}: {1}", kvp.Key, Math.Ceiling(newPrice) );