using system;
class Geometrical_shapes
{
double Area;
string Shape;
string color;
public void GetInput()
{
console.write("Enter the of the Shape:");
Shape = console.ReadLine();
console.Write("Enter the Color:");
Color = Console.ReadLine();
Console.Write("Enter the Area:");
Area = Console.ToDouble(console.ReadLine());
}
Publicvoid Display ()
{
Console.WriteLine();
Console.WriteLine("THISIS WHAT YOU ENTERED: \n");
console.write("Name of the Shape:");
console.WriteLine(Shape);
console.write("Color:");
Console.WriteLine("Color");
Console.write("Area:");
Console.writeLine(Area);
}
}
class Classy
{
static void Main(string[]args)
{
Geometrical Shapes_Small_rectangle = new Geometrical_Shapes();
Small rectangle.Create();
Small rectangle.Display();
Console.ReadLine();
}
}
No comments:
Post a Comment