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 162 views
1 answer 184 views
1 answer 163 views
1 answer 153 views
1 answer 154 views
1 answer 173 views
...