Friends Corect me !
This is the end project in c# learning can you tell me i write with corect way? The my code part come from me. yes code is corect but im not sure its proper way or not can you help me? what is best way to write this code? class Program { static void Main(string[] args) { int discount = Convert.ToInt32(Console.ReadLine()); Dictionary<string, int> coffee = new Dictionary<string, int>(); 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); //my code foreach (string FinalPrice in coffee.Keys) Console.WriteLine(FinalPrice + ": " + (coffee[FinalPrice]-coffee[FinalPrice]*discount/100)); } } //Program asking me to implement the given // discount from user in coffee price