#include<stdio.h> void main() { char ch; int i; clrscr(); printf("\nEnter The Character : "); scanf("%c",&ch); if(ch>='a' &&ch<='z') printf("\nCharacter is Lowercase Letters"); else printf("\nCharacter is Not Lowercase Letters"); getch(); }
Way 2 :
#include<stdio.h> void main() { char ch; int i; clrscr(); printf("\nEnter The Character : "); scanf("%c",&ch); if(ch>=97 && ch<=122) printf("\nCharacter is Lowercase Letters"); else printf("\nCharacter is Not Lowercase Letters"); getch(); }
Output :
Enter The Character : a Character is Lowercase Letters
1 comment:
Lowercase check program
Post a Comment