Advertisement
aiNayan

Task4

Aug 17th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. int main ()
  3. {
  4.   char n;
  5.   printf ("Enter the character: ");
  6.   scanf ("%c", &n);
  7.   if (('a'<=n && 'z'>=n) || ('A'<=n && 'Z'>=n))
  8.     printf ("This is a character", n);
  9.   else
  10.     printf ("This is a digit", n);
  11.   return 0;
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement