Saludos a todos tengo duda aquí en este programa de calcular el área. Me tranque jajaja | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответов
+ 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