+ 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); //ваш код } } }
2 odpowiedzi
+ 1
Use radius*radius instead of radius**2. The operator ** is a pointer dereference. There is no exponent operator in C#.