You are on page 1of 1

ALGORITMO PARA HALLAR EL AREA DE UN CIRCULO

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace Calculando_Area_de_un_Circulo

    class Program

    {

        static void Main(string[] args)

        {

            double area, pi, radio;

            pi = Convert.ToDouble(3.1416);

            Console.WriteLine(“teclea el radio”);

            radio = Convert.ToDouble(Console.ReadLine());

            area = pi * radio * radio;

            Console.WriteLine(“el area del circulo es: ” + area);

            System.Console.ReadLine();

        }

    }

You might also like