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
h,double w)
{
double Ar = h * w;
return Ar;
}
static void Main(string[] args)
{
double h,w;
Console.WriteLine("plz
enter the height");
h=Convert.ToDouble(Console.ReadLine());
Console.WriteLine("plz
enter the wdth");
w= Convert.ToDouble(Console.ReadLine());
myclass m = new myclass();
Console.WriteLine("the
Area of the circle is {0}",m.method(h,w));
}
}
}
No comments:
Post a Comment