예제 #1
0
    public Chapter2()
    {
        Point3 a = new Point3(5, 6, 7);
        Point3 b = new Point3(10, 10, 10);
        Point3 c = new Point3(1, 2, 3);
        Point3 d = new Point3(6, 7, 5);

        Console.Write("coord point a: ");
        a.Printf();
        Console.Write("coord point b: ");
        b.Printf();
        Console.Write("coord point c: ");
        c.Printf();
        Console.Write("coord point d: ");
        d.Printf();

        if (a > c) Console.WriteLine("a > c");
        if (a < b) Console.WriteLine("a < b");

        if (a > d) Console.WriteLine("a > d");
        else
            if (a < d) Console.WriteLine("a < d");
            else Console.WriteLine("point a & d na odnoi okrughnosti");
    }