Beispiel #1
0
        static void Main(string[] args)
        {
            ProblemBase prob = new Problem22();

            Console.WriteLine("Hello World!");
            Console.WriteLine(prob.GetResult());
        }
Beispiel #2
0
        private static void Main(string[] args)
        {
            EulerProblem p = new Problem22(Printing.On);

            Console.WriteLine("Answer: {0}", p.Answer);
            Console.WriteLine("Time: {0}", p.Timing);
            Console.WriteLine("The answer is in the clipboard!");
            Clipboard.SetText(p.Answer.ToString());
            Console.ReadLine();
        }
Beispiel #3
0
 private static void Main(string[] args)
 {
     EulerProblem p = new Problem22(Printing.On);
     Console.WriteLine("Answer: {0}", p.Answer);
     Console.WriteLine("Time: {0}", p.Timing);
     Console.WriteLine("The answer is in the clipboard!");
     Clipboard.SetText(p.Answer.ToString());
     Console.ReadLine();
 }