Ejemplo n.º 1
0
    public static void problem()
    {
        Summarizer s1 = new Summarizer(2.2F);
        Summarizer s2 = new Summarizer(3.0F);
        Summarizer s3 = new Summarizer(5.0F, 1.0F);

        Console.WriteLine("First answer:  {0}", s1.computeAnswer());
        Console.WriteLine("Second answer: {0}", s2.computeAnswer());
        Console.WriteLine("Third answer:  {0}", s3.computeAnswer());
    }