How to determines whether a character is a lowercase in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {

            char ch = 'A';

            if (Char.IsLower(ch))
                Console.WriteLine("yes");
            else
                Console.WriteLine("no");

            ch = 'a';

            if (Char.IsLower(ch))
                Console.WriteLine("yes");
            else
                Console.WriteLine("no");
        }
    }
}


/*
run:
    
no
yes

*/

 



answered Dec 6, 2016 by avibootz

Related questions

1 answer 169 views
1 answer 190 views
1 answer 170 views
1 answer 159 views
1 answer 160 views
1 answer 187 views
...