コード例 #1
0
        static void Main(string[] args)
        {
            // Create our interactive database of number words.
            var words_list = new NumberWords();

            // Our letter count.
            int letter_count = 0;

            for (var i = 1; i < 1001; ++i)
            {
                letter_count += CountLetters(words_list.GetWord(i));
            }
            ;

            System.Console.WriteLine(letter_count);
            System.Console.ReadLine();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: jwshumaker/ProjectEuler
        static void Main(string[] args)
        {
            // Create our interactive database of number words.
            var words_list = new NumberWords();

            // Our letter count.
            int letter_count = 0;

            for (var i = 1; i < 1001; ++i)
            {
                letter_count += CountLetters(words_list.GetWord(i));
            };

            System.Console.WriteLine(letter_count);
            System.Console.ReadLine();
        }