Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- char ch;
- printf("Enter your character: \n");
- scanf("%c", &ch);
- if(ch >= 'A' && ch <= 'Z')
- {
- printf("'%c' is uppercase alphabet.", ch);
- }
- else if(ch >= 'a' && ch <= 'z')
- {
- printf("'%c' is lowercase alphabet.", ch);
- }
- else
- {
- printf("'%c' is not an alphabet.", ch);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment