Exemplo n.º 1
0
        static void Main()
        {
            int sum = 1000;

            IntegerTuple abc     = Pythagorean.GetTripletWithSumOf(sum);
            int          product = abc.GetProduct();

            Console.WriteLine(product);
            Console.ReadKey();
        }
 private static void SaveTriplet(int a, int b, int c)
 {
     _pythagoreanTriplet = new IntegerTuple(a, b, c);
 }