static void Main(string[] args) { double y = Convert.ToDouble(Console.ReadLine()); double x = Convert.ToDouble(Console.ReadLine()); PointInCircle circle = new PointInCircle(1, 1, 1.5); Boolean inCircle = circle.isInCircle(x, y); Boolean inRectangle = isPointInRectangle(x, y); Boolean conditionSatisfied = false; if (inCircle) { if (!inRectangle) { conditionSatisfied = true; } } Console.WriteLine("In circle " + inCircle + " in Rec " + inRectangle); Console.WriteLine("Overall: " + conditionSatisfied); }
public static void Main(string[] args) { PointInCircle self = new PointInCircle(0, 0, 2); self.check(); }