你们可以看看我写的这个程序:是用JAVA写的
import java.io.*;
public class test{
public static void main(String[] args) throws IOException
{
char c=' ';
System.out.println("Please Input a char:");
c=(char)System.in.read();
int i=c;
if(i>=65&&i<=96)
{ i+=32;
char b=(char)i;
System.out.println("You have entered :"+b);}
else
{System.out.println("You have entered :"+c);}
}
}

