static void Main(string[] args)
{
char ch, c;
Console.WriteLine("请输入一个字符;");
ch = char.Parse(Console .ReadLine ());
if ((ch >= ‘A‘) && (ch <= ‘Z‘))
c = (char)(ch + 32);
else
c = ch;
Console.WriteLine("转化后的字符是:{0}",c);
Console.Read();
Console.ReadLine();
}
原文地址:http://www.cnblogs.com/hnzsb-vv1130/p/3832325.html