Why am I getting the error implicitly converting type double to an int?
问题 How do I fix the error "Cannot implicitly convert type 'double' to 'int'. An explicit conversion exists (are you missing a cast?). I don't see where I am changing an int to a double. Here's the following code I am working with: namespace Chapter_9 { class Program { static void Main(string[] args) { Circle create = new Circle(); create.SetRadius(2); WriteLine("Radius = {0}", create.GetRadius()); WriteLine("Diameter = {0}", create.GetDiameter()); WriteLine("Area = {0}", create.GetArea()); } }