0

for the area of a circle in C#

ever time i run this code it gives me an error in the code coach 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; int radius = Convert.ToInt32(Console.ReadLine()); Console.WriteLine((radius * radius) * pi); } } }

13th Aug 2022, 5:32 AM
Junior
Junior - avatar
0 Réponse