0

What’s the err here??

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) { const double pi = 3.14; double radius; //your code goes here radius = Console.ReadLine(); Console.WriteLine({0} * {1} ** 2, pi, radius); } } }

23rd Mar 2021, 5:48 PM
Ancient Coder
Ancient Coder - avatar
1 Answer
+ 2
C# doesn't have the exponentiation operator (**). And I'd recommend you to revisit output formatting in C#. https://code.sololearn.com/ct0WU37Xw8k0/?ref=app
23rd Mar 2021, 6:02 PM
Soumik
Soumik - avatar