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 Respostas
+ 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