예제 #1
0
        static void Main(string[] args)
        {
            Practice.FizzBuzz.Run();    //  Classic FizzBuzz
            Mulitples.Run();            //  Project Euler # 1: Sum of all multiples of 3 and 5 below 1000
            Fib.Run();                  //  Project Euler # 2: Sum of even numbers in Fibonacci sequence below 4000000
            LargestPrimeFactor.Run();   //  Project Euler # 3: Largest prime factor
            Palindrome.Run();           //  Project Euler # 4: Largest palindrome product
            SumSquare.Run();            //  Project Euler # 6: Sum of squares, squares of sums


            System.Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Enter the string: ");
            string input        = Console.ReadLine();
            bool   isPalindrome = Palindrome.IsPalindromeHalf(input);

            Console.WriteLine(input + " is" + isPalindrome);


            Fibonacci.FibonacciSeries(9);
            Console.Write(Fibonacci.FibonacciNumber(9));

            Console.ReadLine();
        }