Esempio n. 1
0
        static void Main(string[] args)
        {
            shape c = new circle(9);

            c.area();
            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            circle C = new circle(14.0);

            Console.WriteLine("Luas Lingkaran \t\t= {0}", C.area());
            rectangle K = new rectangle(18.0);

            Console.WriteLine("Luas Persegi \t\t= {0}", K.area());
            TriAngle S = new TriAngle(18.0, 5.0);

            Console.WriteLine("Luas Segitiga \t\t= {0}", S.area());
        }