0
Alguien me puede ayudar con el reto del ĂĄrea de un circulo
namespace SoloLearn { class Program { static void Main(string[] args) { const double pi = 3.14; double radius; radius = Console.Readline ("Escribe el radio" ) ; Area = Console.WriteLine( pi * radius * radius); } } }
2 Answers
0
It's Console.ReadLine(), there's a typo in your code.
ReadLine will return a string, so you need to convert tot to double in order to assign it to radius.
Remove Area =. For one thing Area is not declared, for another, it is not needed.
0
Thanks Lisa you saved me