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