0

What am I doing wrong?

const double pi = 3.14; double radius = 5; //your code goes here Console.WriteLine(pi*radius*radius);

31st Dec 2020, 1:04 PM
Swiff _Vastolorde
Swiff _Vastolorde - avatar
3 ответов
+ 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.
31st Dec 2020, 1:11 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Swiff _Vastolorde Tag your programming language Edit : Question has been edited .
31st Dec 2020, 1:09 PM
Alphin K Sajan
Alphin K Sajan - avatar
0
I'm calculating the area of a Circle.
31st Dec 2020, 5:16 PM
Swiff _Vastolorde
Swiff _Vastolorde - avatar