Ayuda | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Ayuda

Que está mal en mi código? 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; int radio = 0; //tu código va radius = Convert.Todouble (Console.Readline()); radius *= radius ; radius *= pi; Console.WriteLine(radius ); } } }

20th Jun 2021, 6:20 PM
anibal heredia
anibal heredia - avatar
5 Answers
0
radius = Convert.ToDouble (Console.ReadLine()); use Capital L in ReadLine() Capital D in ToDouble()
20th Jun 2021, 6:32 PM
Jayakrishna 🇮🇳
0
Muchas gracias!
20th Jun 2021, 6:34 PM
anibal heredia
anibal heredia - avatar
0
Seguidme así gano monedas para hacer las otras pruebas. No tengo plata para comprar la versión paga
20th Jun 2021, 6:35 PM
anibal heredia
anibal heredia - avatar
0
Yo tampoco tengo, para comprar pro. no se preocupe, haga lo mismo que hizo con este problema. alguien de la comunidad te ayude ... eres bienvenido. i also dont have, to buy pro. don't worry do the same as you did for this problem. some one from community help you.. you're welcome.
20th Jun 2021, 7:23 PM
Jayakrishna 🇮🇳
0
Ok. Resolví el ejercicio pero no me lo aprueba learn...le pasó alguna vez?
20th Jun 2021, 7:24 PM
anibal heredia
anibal heredia - avatar