public static void Main()
Console.WriteLine("Please Enter Two Values of x ");
Console.WriteLine("x(1) = ");
int x1 = int.Parse(Console.ReadLine());
Console.WriteLine("x(2)= ");
int x2 = int.Parse(Console.ReadLine());
Console.WriteLine("Thank You. Now Enter Two Values of y");
Console.WriteLine("y(1) = ");
int y1 = int.Parse(Console.ReadLine());
Console.WriteLine("y(2) = ");
int y2 = int.Parse(Console.ReadLine());
int Area = (x2 - x1)*(y2 - y1);
int Parameter = ((x2 - x1)*2) + ((y2 - y1)*2);
Console.WriteLine("The Area of the rectangle is " + Area);
Console.WriteLine("The Parameter of the rectangle is " + Parameter);