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); } } }
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
+ 1
Gracias