static void Main(string[] args)
        {
            LatinChar lc = new LatinChar();
            char      minChar, maxChar;

            minChar = (char)Console.Read();
            maxChar = (char)Console.Read();
            for (char i = minChar; i <= maxChar; ++i)
            {
                lc = new LatinChar(i);
                Console.WriteLine(lc.Char);
            }
        }
예제 #2
0
 static void Main(string[] args)
 {
     if (char.TryParse(Console.ReadLine(), out char minChar) && char.TryParse(Console.ReadLine(), out char maxChar) && minChar < maxChar)
     {
         for (int i = minChar; i < maxChar; i++)
         {
             LatinChar latin = new LatinChar((char)i);
             Console.WriteLine(latin.Char);
         }
     }
     else
     {
         Console.WriteLine("Incorrect Input");
     }
 }
        static void Main(string[] args)
        {
            LatinChar latinChar;



            char minChar = char.Parse(Console.ReadLine());
            char maxChar = char.Parse(Console.ReadLine());

            for (char i = minChar; i < maxChar; i++)
            {
                latinChar = new LatinChar(i);
                Console.WriteLine((char)latinChar.Char);
            }
        }
예제 #4
0
        static void Main(string[] args)
        {
            char minChar, maxChar;

            do
            {
            } while (!char.TryParse(Console.ReadLine(), out minChar));
            do
            {
            } while (!char.TryParse(Console.ReadLine(), out maxChar));
            LatinChar z;

            for (char i = minChar; i < maxChar; i++)
            {
                z = new LatinChar(i);
                Console.WriteLine(z.Ch);
            }
        }
예제 #5
0
        static void Main(string[] args)
        {
            char minChar, maxChar;

            do
            {
                Console.WriteLine("Введите нижнюю границу: ");
            }while (!char.TryParse(Console.ReadLine(), out minChar));
            do
            {
                Console.WriteLine("Введите верхнюю границу: ");
            }while (!char.TryParse(Console.ReadLine(), out maxChar));
            for (char i = minChar; i <= maxChar; i++)
            {
                try
                {
                    LatinChar tmp = new LatinChar(i);
                    Console.WriteLine(tmp.ToString());
                }
                catch
                {
                }
            }
        }