0
What am I doing wrong?
const double pi = 3.14; double radius = 5; //your code goes here Console.WriteLine(pi*radius*radius);
3 Answers
+ 2
Swiff _Vastolorde , it is mentioned that you should read radius as input, don't assign it certain value. You can read the input for example this way => double radius = Double.Parse(Console.ReadLine());
Also it is good to write in your question what task do you try to solve.
+ 1
Swiff _Vastolorde Tag your programming language
Edit : Question has been edited .
0
I'm calculating the area of a Circle.