Пример #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 UcgenAlan(Ucgen u)
 {
     return($"Ucgen alan: {u.Alan()}");
 }