INPUT:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication20
{
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication20
{
class myclass
{
public double method(double r)
{
double A =
3.14 * r * r;
return A;
}
static void Main(string[] args)
{
double radius;
Console.WriteLine("plz
enter the radius");
radius=Convert.ToDouble(Console.ReadLine());
myclass m = new myclass();
Console.WriteLine("the
Area of the circle is {0}",m.method(radius));
}
}
}
No comments:
Post a Comment