public static void Main(string[] args) { Rectagle r1 = Rectagle.ReadRectangle(); Rectagle r2 = Rectagle.ReadRectangle(); Console.WriteLine(r1.IsInside(r2)); }
public string IsInside(Rectagle r2) { if (Left >= r2.Left && Right <= r2.Right && Top >= r2.Top && Bottom <= r2.Bottom) { return("Inside"); } return("Not Inside"); }