键盘输入

//练习三

    

    char c = '0';

    

    scanf("%c",&c);

    

    if ( c >= '0' && c <= '9') {

        

        printf("this is digital");

    }else if( c >= 'A' && c <= 'Z'){

        

        printf("this is capital letter");

    }else if(  c >= 'a' && c <= 'z'){

        

        printf("this is letter");

    }else {

        

        printf("other");

    }

posted @ 2015-09-18 14:43  xlsn0w  阅读(152)  评论(0编辑  收藏  举报