예제 #1
0
        static void Main(string[] args)
        {
            Krug       k = new Krug(5);
            Treugolnik t = new Treugolnik(4, 4, 5);

            Console.WriteLine(SAll.S(k));
            Console.WriteLine(SAll.S(t));
            Console.WriteLine(Treugolnik.TruePrTreugolnik(t));
        }
예제 #2
0
 public static double S(Krug r)
 {
     return(Math.PI * r.R * r.R);
 }