📜  不使用 islower 函数检查字符是否为小写的程序 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:35.556000             🧑  作者: Mango

代码示例1
#include 

int main()
{
  char Ch;

  printf("\n Please Enter any alphabet\n");
  scanf("%c", &Ch);

  if (Ch >= 'a' && Ch <= 'z')
   {  
     printf ( "\nEntered character is lowercase alphabet") ;
   }
  else
   {
     printf("\nEntered character is Not lowercase alphabet");
   }  
}