Tuesday, 22 February 2022

check whether the entered character is a lowercase or not in C

 #include <stdio.h>


int main(){

char ch;
printf("Enter the character\n");
scanf("%c",&ch);
if (ch>=97 && ch<=122)
{
    printf("The entered character is a lowercase\n");

}
else
printf("The entered character is not a lowercase\n");
 return 0;
}

No comments:

Post a Comment