예제 #1
0
파일: Program.cs 프로젝트: alaitang/Euler
        static void Main(string[] args)
        {
            ProblemBase prob = new Problem22();

            Console.WriteLine("Hello World!");
            Console.WriteLine(prob.GetResult());
        }
예제 #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();
        }
예제 #3
0
파일: Program.cs 프로젝트: jhogstrom/euler
 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();
 }