Why this code is not correct? Area of a Circle | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why this code is not correct? Area of a Circle

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; //your code goes here string str = Console.ReadLine(); radius = Covert.ToDouble(str); radius *= radius; double area = pi * radius; Console.WriteLine(area); } } }

29th Oct 2022, 9:17 AM
Volodymyr Rososhenko
Volodymyr Rososhenko - avatar
4 Answers
+ 5
You misspelled "Convert"
29th Oct 2022, 9:25 AM
Jayakrishna 🇮🇳
+ 1
To find of area Circle
29th Oct 2022, 9:24 AM
Volodymyr Rososhenko
Volodymyr Rososhenko - avatar
+ 1
Oh.. Thank you very much!
29th Oct 2022, 9:28 AM
Volodymyr Rososhenko
Volodymyr Rososhenko - avatar
0
What is your task here?
29th Oct 2022, 9:23 AM
Jayakrishna 🇮🇳