Hello, I’m working on this task:
You’ve got a task from Ritchie: Put in a shift at the factory that makes sewer covers. Your main job will be to manually calculate the area of the round sewer cover based on its radius. You can automate this by writing a program that takes one double number as an input - the radius of the sewer cover - and outputs one number - its area. Use 3.14 for Pi in your program.
Here is my code:
namespace DoubleType
{
class AreaCalculator
{
static void Main(string[] args)
{
double pi = 3.14;
double r = double.Parse(Console.ReadLine());
double multiply = r*r*pi;
Console.WriteLine(multiply);
}
}
}
Я радіус вносила не double, а int адже це ціле число , output виводив правильний результат, але code easy не пропускав як правильну відповідь.