예제 #1
0
        static void Main(string[] args)
        {
            Ucgen u1 = new Ucgen(3, 5);

            Console.WriteLine(AlanBilgi.UcgenAlan(u1));

            Dikdortgen d1 = new Dikdortgen(3, 5);

            Console.WriteLine(AlanBilgi.DikdortgenAlan(d1));
        }
예제 #2
0
 public static string DikdortgenAlan(Dikdortgen d)
 {
     return($"Dikdortgen alan: {d.Alan()}");
 }