C# test
Hello everyone. I am trying to learn C# and I got the right answer but I don't know how to implement it in a way to get all cases correct. I am trying to pass this code project. https://www.sololearn.com/learning/eom-project/1080/1016 Here is my code which gives me the first case correct but if I uncomment the other code, then I get all of them wrong but the answers are correct. Can someone help me understand why is not working? Thanks. static void Main(string[] args) { const double pi = 3.14; double radius; //your code goes here static double areaOfCircle(double radius) { return pi * radius * radius; } Console.WriteLine(areaOfCircle(5)); //Console.WriteLine(areaOfCircle(6.4)); //Console.WriteLine(areaOfCircle(10)); }