0

Saludos a todos tengo duda aquĂ­ en este programa de calcular el ĂĄrea. Me tranque jajaja

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; //tu cĂłdigo va aquĂ­ int r = 5; Console.ReadLine(); Console.WriteLine(r*r * 3.14); } } }

11th Oct 2021, 1:31 AM
Jesus Trias
Jesus Trias - avatar
2 Answers
+ 1
To quadrate something you can use Math.Pow(double, double) and for pi you can use Math.PI and you can write int r = int.Parse(Console.ReadLine()); if that was you plan
11th Oct 2021, 2:03 AM
Stefanoo
Stefanoo - avatar
+ 1
Gracias
11th Oct 2021, 2:04 AM
Jesus Trias
Jesus Trias - avatar