+ 1

Where is the mistake?

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) { double pi = 3.14; double radius = ConsoleReadLine(); double square = pi * radius**2; Console.WriteLine(square); //ваш код } } }

10th Jan 2023, 1:22 PM
Furchik
Furchik - avatar
2 odpowiedzi
+ 1
Use radius*radius instead of radius**2. The operator ** is a pointer dereference. There is no exponent operator in C#.
10th Jan 2023, 8:15 PM
Brian
Brian - avatar