0

Why is this wrong?

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { const double pi = 3.14; double radius; //tu cĂłdigo va aquĂ­ Console.Write("Radius = "); radius = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("{0}",radius); radius *= radius; radius *= pi; Console.WriteLine("Circle Area = {0}",radius); } } }

25th Feb 2022, 6:43 PM
Federico Poliseno
Federico Poliseno - avatar
4 Answers
+ 1
No problem, thank you. I have already solved. It wasn't wrong but the app ask for the exact same and unique code.
25th Feb 2022, 7:33 PM
Federico Poliseno
Federico Poliseno - avatar
0
The excercise gives pi defined.
25th Feb 2022, 7:19 PM
Federico Poliseno
Federico Poliseno - avatar