Calculate the area of Circle.
Calculate the area of Circle.
CODE:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace area_of_circle
{
class Program
{
static void Main(string[] args)
{
double radius = 2.0;
double area= Math.PI * Math.Pow(radius,2 );
Console.WriteLine($"The Area of Circle :{area}");
}
}
}
output:
ha jani kasa ha
ReplyDelete